Searched hist:"5 f27571382ca42daa3e3d40d1b252bf18c2b61d2" (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/nvme/host/ |
H A D | multipath.c | diff 5f27571382ca42daa3e3d40d1b252bf18c2b61d2 Thu Feb 23 03:12:26 CST 2023 Yu Kuai <yukuai3@huawei.com> 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 <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230223091226.1135678-1-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/drivers/md/ |
H A D | dm.c | diff 5f27571382ca42daa3e3d40d1b252bf18c2b61d2 Thu Feb 23 03:12:26 CST 2023 Yu Kuai <yukuai3@huawei.com> 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 <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230223091226.1135678-1-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/block/ |
H A D | blk-core.c | diff 5f27571382ca42daa3e3d40d1b252bf18c2b61d2 Thu Feb 23 03:12:26 CST 2023 Yu Kuai <yukuai3@huawei.com> 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 <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230223091226.1135678-1-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/include/linux/ |
H A D | blkdev.h | diff 5f27571382ca42daa3e3d40d1b252bf18c2b61d2 Thu Feb 23 03:12:26 CST 2023 Yu Kuai <yukuai3@huawei.com> 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 <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230223091226.1135678-1-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|