Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756425Ab3E1VLj (ORCPT ); Tue, 28 May 2013 17:11:39 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:40589 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734Ab3E1VLi (ORCPT ); Tue, 28 May 2013 17:11:38 -0400 Date: Tue, 28 May 2013 16:10:15 -0500 From: "Philip J. Kelleher" To: axboe@kernel.dk Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/8] rsxx: Fixes incorrect stats calculation. Message-ID: <20130528211015.GC5065@oc6784271780.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13052821-7606-0000-0000-00000BE2977B Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1017 Lines: 26 From: Philip J Kelleher Fixing incorrect stats calculation during read retries. Signed-off-by: Philip J Kelleher ------------------------------------------------------------------------------- diff -uprN -X linux-block-vanilla/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-04-29 11:25:00.596187375 -0500 +++ linux-block/drivers/block/rsxx/dma.c 2013-04-29 13:58:27.979188201 -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); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/