Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a890d62b9e8743341f62548104d1ac29fa8a5a88
Commit:     a890d62b9e8743341f62548104d1ac29fa8a5a88
Parent:     6f2576af5ba5913538fda7dfb7c6a17771025477
Author:     Jerome Marchand <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 8 11:04:53 2008 +0100
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 12:41:57 2008 +0100

    Enhanced partition statistics: aoe fix
    
    Updates the enhanced partition statistics in ATA over Ethernet driver
    (not tested).
    
    Signed-off-by: Jerome Marchand <[EMAIL PROTECTED]>
---
 drivers/block/aoe/aoecmd.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 4d59d50..9e5a37f 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -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 git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to