Skip to content

Commit

Permalink
Enhanced partition statistics: aoe fix
Browse files Browse the repository at this point in the history
Updates the enhanced partition statistics in ATA over Ethernet driver
(not tested).

Signed-off-by: Jerome Marchand <[email protected]>
  • Loading branch information
jeromemarchand authored and Jens Axboe committed Feb 8, 2008
1 parent 6f2576a commit a890d62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/block/aoe/aoecmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a890d62

Please sign in to comment.