ufs: Fix queue depth handling for best effort cases
authorSujit Reddy Thumma <sthumma@codeaurora.org>
Sun, 29 Jun 2014 06:40:20 +0000 (09:40 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:01 +0000 (17:17 -0400)
commit4264fd613a6a4b9c1c91d9291653d0fdaf4fd288
tree7dd4f300e45d50dddceba4bcfd541841daee7e40
parent1b3e89563119f1e0422230915dcaf23a262628b7
ufs: Fix queue depth handling for best effort cases

Some UFS devices may expose bLUQueueDepth field as zero indicating
that the queue depth depends on the number of resources available
for LUN at a particular instant to handle the outstanding transfer
requests. Currently, when response for SCSI command is TASK_FULL
the LLD decrements the queue depth but fails to increment when the
resources are available. The scsi mid-layer handles the change in
queue depth heuristically and offers simple interface with
->change_queue_depth.

Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Acked-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c