2013-06-01 00:28:57

by Philip J. Kelleher

[permalink] [raw]
Subject: [PATCH 2/8] rsxx: Fixes incorrect stats calculation.

From: Philip J Kelleher <[email protected]>

Fixing incorrect stats calculation during read retries.

Signed-off-by: Philip J Kelleher <[email protected]>
-------------------------------------------------------------------------------


diff -uprN -X linux-block/Documentation/dontdiff linux-block-vanilla/drivers/block/rsxx/dma.c linux-block/drivers/block/rsxx/dma.c
--- linux-block-vanilla/drivers/block/rsxx/dma.c 2013-05-31 14:57:49.410326601 -0500
+++ linux-block/drivers/block/rsxx/dma.c 2013-05-31 15:46:43.828260076 -0500
@@ -253,6 +253,7 @@ static void rsxx_requeue_dma(struct rsxx
* first.
*/
spin_lock(&ctrl->queue_lock);
+ ctrl->stats.sw_q_depth++;
list_add(&dma->list, &ctrl->queue);
spin_unlock(&ctrl->queue_lock);
}