mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
Enhanced partition statistics: aoe fix
Updates the enhanced partition statistics in ATA over Ethernet driver (not tested). Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
This commit is contained in:
parent
6f2576af5b
commit
a890d62b9e
1 changed files with 4 additions and 4 deletions
|
@ -648,10 +648,10 @@ aoecmd_ata_rsp(struct sk_buff *skb)
|
||||||
struct gendisk *disk = d->gd;
|
struct gendisk *disk = d->gd;
|
||||||
const int rw = bio_data_dir(buf->bio);
|
const int rw = bio_data_dir(buf->bio);
|
||||||
|
|
||||||
disk_stat_inc(disk, ios[rw]);
|
all_stat_inc(disk, ios[rw], buf->sector);
|
||||||
disk_stat_add(disk, ticks[rw], duration);
|
all_stat_add(disk, ticks[rw], duration, buf->sector);
|
||||||
disk_stat_add(disk, sectors[rw], n_sect);
|
all_stat_add(disk, sectors[rw], n_sect, buf->sector);
|
||||||
disk_stat_add(disk, io_ticks, duration);
|
all_stat_add(disk, io_ticks, duration, buf->sector);
|
||||||
n = (buf->flags & BUFFL_FAIL) ? -EIO : 0;
|
n = (buf->flags & BUFFL_FAIL) ? -EIO : 0;
|
||||||
bio_endio(buf->bio, n);
|
bio_endio(buf->bio, n);
|
||||||
mempool_free(buf, d->bufpool);
|
mempool_free(buf, d->bufpool);
|
||||||
|
|
Loading…
Reference in a new issue