aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2023-02-23 09:12:26 +0000
committerJens Axboe <[email protected]>2023-03-15 15:25:04 +0000
commit5f27571382ca42daa3e3d40d1b252bf18c2b61d2 (patch)
tree8f1fe6b4727f5b014fb676ee07a9e233a2934ddf /drivers/net/ethernet/intel/ice/ice_main.c
parentblock: sunvdc: add check for mdesc_grab() returning NULL (diff)
downloadkernel-5f27571382ca42daa3e3d40d1b252bf18c2b61d2.tar.gz
kernel-5f27571382ca42daa3e3d40d1b252bf18c2b61d2.zip
block: count 'ios' and 'sectors' when io is done for bio-based device
While using iostat for raid, I observed very strange 'await' occasionally, and turns out it's due to that 'ios' and 'sectors' is counted in bdev_start_io_acct(), while 'nsecs' is counted in bdev_end_io_acct(). I'm not sure why they are ccounted like that but I think this behaviour is obviously wrong because user will get wrong disk stats. Fix the problem by counting 'ios' and 'sectors' when io is done, like what rq-based device does. Fixes: 394ffa503bc4 ("blk: introduce generic io stat accounting help function") Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions