rsxx: Fixes incorrect stats calculation.
authorPhilip J Kelleher <pjk1939@linux.vnet.ibm.com>
Tue, 18 Jun 2013 19:50:48 +0000 (14:50 -0500)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jun 2013 11:52:10 +0000 (13:52 +0200)
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>
drivers/block/rsxx/dma.c

index b485a65b8de1c109ed79e19a5024a1878e6c050b..bed32f16b084bdd46f7b881b32f95775effaa499 100644 (file)
@@ -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);
 }