]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Enhanced partition statistics: aoe fix
authorJerome Marchand <jmarchan@redhat.com>
Fri, 8 Feb 2008 10:04:53 +0000 (11:04 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 8 Feb 2008 11:41:57 +0000 (12:41 +0100)
Updates the enhanced partition statistics in ATA over Ethernet driver
(not tested).

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
drivers/block/aoe/aoecmd.c

index 4d59d5057734ab41686a37a7abb148ab361ee285..9e5a37fb36cffa6babded1882f69bd7a21537a4f 100644 (file)
@@ -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);