提交 a890d62b 编写于 作者: J Jerome Marchand 提交者: Jens Axboe

Enhanced partition statistics: aoe fix

Updates the enhanced partition statistics in ATA over Ethernet driver
(not tested).
Signed-off-by: NJerome Marchand <jmarchan@redhat.com>
上级 6f2576af
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册