diff options
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r-- | 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 4d59d5057734..9e5a37fb36cf 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c | |||
@@ -648,10 +648,10 @@ aoecmd_ata_rsp(struct sk_buff *skb) | |||
648 | struct gendisk *disk = d->gd; | 648 | struct gendisk *disk = d->gd; |
649 | const int rw = bio_data_dir(buf->bio); | 649 | const int rw = bio_data_dir(buf->bio); |
650 | 650 | ||
651 | disk_stat_inc(disk, ios[rw]); | 651 | all_stat_inc(disk, ios[rw], buf->sector); |
652 | disk_stat_add(disk, ticks[rw], duration); | 652 | all_stat_add(disk, ticks[rw], duration, buf->sector); |
653 | disk_stat_add(disk, sectors[rw], n_sect); | 653 | all_stat_add(disk, sectors[rw], n_sect, buf->sector); |
654 | disk_stat_add(disk, io_ticks, duration); | 654 | all_stat_add(disk, io_ticks, duration, buf->sector); |
655 | n = (buf->flags & BUFFL_FAIL) ? -EIO : 0; | 655 | n = (buf->flags & BUFFL_FAIL) ? -EIO : 0; |
656 | bio_endio(buf->bio, n); | 656 | bio_endio(buf->bio, n); |
657 | mempool_free(buf, d->bufpool); | 657 | mempool_free(buf, d->bufpool); |