summaryrefslogtreecommitdiffstats
path: root/drivers/block/rsxx
diff options
context:
space:
mode:
authorPhilip J Kelleher <pjk1939@linux.vnet.ibm.com>2013-06-18 14:50:48 -0500
committerJens Axboe <axboe@kernel.dk>2013-06-19 13:52:10 +0200
commit62302508f2986720ad73494dd8037dff1c4f77d1 (patch)
treea2ff51ab6d6a08a2a0fefbc50cc533323925f547 /drivers/block/rsxx
parentb8b225da139f5770d7689b189fd5debc58f4b35d (diff)
downloadblackbird-op-linux-62302508f2986720ad73494dd8037dff1c4f77d1.tar.gz
blackbird-op-linux-62302508f2986720ad73494dd8037dff1c4f77d1.zip
rsxx: Fixes incorrect stats calculation.
Fixing incorrect stats calculation during read retries. Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rsxx')
-rw-r--r--drivers/block/rsxx/dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rsxx/dma.c b/drivers/block/rsxx/dma.c
index b485a65b8de1..bed32f16b084 100644
--- a/drivers/block/rsxx/dma.c
+++ b/drivers/block/rsxx/dma.c
@@ -269,6 +269,7 @@ static void rsxx_requeue_dma(struct rsxx_dma_ctrl *ctrl,
* first.
*/
spin_lock_bh(&ctrl->queue_lock);
+ ctrl->stats.sw_q_depth++;
list_add(&dma->list, &ctrl->queue);
spin_unlock_bh(&ctrl->queue_lock);
}
OpenPOWER on IntegriCloud