Skip to content
Commit 9d1110f9 authored by Li Nan's avatar Li Nan Committed by Song Liu
Browse files

md: don't account sync_io if iostats of the disk is disabled



If iostats is disabled, disk_stats will not be updated and
part_stat_read_accum() only returns a constant value. In this case,
continuing to count sync_io and to check is_mddev_idle() is no longer
meaningful.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240117031946.2324519-3-linan666@huaweicloud.com


Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 3f9f2312
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment