]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6850d174991067702a29e6e79519f65af20c0d72
tree7dd4f300e45d50dddceba4bcfd541841daee7e40
parent67e8195861810624a7e117b5eb69441ca162cea4
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