From: Philip J Kelleher Date: Tue, 18 Jun 2013 19:50:48 +0000 (-0500) Subject: rsxx: Fixes incorrect stats calculation. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=62302508f2986720ad73494dd8037dff1c4f77d1;p=deliverable%2Flinux.git rsxx: Fixes incorrect stats calculation. Fixing incorrect stats calculation during read retries. Signed-off-by: Philip J Kelleher Signed-off-by: Jens Axboe --- 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); }