Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758708AbYBASQy (ORCPT ); Fri, 1 Feb 2008 13:16:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754714AbYBASQN (ORCPT ); Fri, 1 Feb 2008 13:16:13 -0500 Received: from mx1.redhat.com ([66.187.233.31]:45644 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754044AbYBASQK (ORCPT ); Fri, 1 Feb 2008 13:16:10 -0500 Message-ID: <47A3617A.4060603@redhat.com> Date: Fri, 01 Feb 2008 19:14:18 +0100 From: Jerome Marchand User-Agent: Thunderbird 1.5.0.9 (X11/20070105) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: axboe@kernel.dk, "Ed L. Cashin" Subject: [Patch 3/6] Enhanced partition statistics: aoe fix Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1402 Lines: 31 Updates the enhanced partition statistics in ATA over Ethernet driver (not tested). Signed-off-by: Jerome Marchand --- drivers/block/aoe/aoecmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -uprN -X linux-2.6/Documentation/dontdiff linux-2.6.orig/drivers/block/aoe/aoecmd.c linux-2.6/drivers/block/aoe/aoecmd.c --- linux-2.6.orig/drivers/block/aoe/aoecmd.c 2008-01-31 16:43:55.000000000 +0100 +++ linux-2.6/drivers/block/aoe/aoecmd.c 2008-01-31 17:40:46.000000000 +0100 @@ -648,10 +648,10 @@ aoecmd_ata_rsp(struct sk_buff *skb) struct gendisk *disk = d->gd; const int rw = bio_data_dir(buf->bio); - disk_stat_inc(disk, ios[rw]); - disk_stat_add(disk, ticks[rw], duration); - disk_stat_add(disk, sectors[rw], n_sect); - disk_stat_add(disk, io_ticks, duration); + all_stat_inc(disk, ios[rw], buf->sector); + all_stat_add(disk, ticks[rw], duration, buf->sector); + all_stat_add(disk, sectors[rw], n_sect, buf->sector); + all_stat_add(disk, io_ticks, duration, buf->sector); n = (buf->flags & BUFFL_FAIL) ? -EIO : 0; bio_endio(buf->bio, n); mempool_free(buf, d->bufpool); -- 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/