Li Nan 9d1110f99c 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: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240117031946.2324519-3-linan666@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
2024-04-08 21:15:46 -07:00
..
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2024-04-01 11:53:37 -06:00
2023-11-17 14:41:14 -05:00
2024-04-01 11:53:37 -06:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2024-02-20 14:22:51 -05:00
2024-02-20 14:22:51 -05:00
2024-04-01 11:53:37 -06:00
2024-02-20 14:22:51 -05:00
2023-02-14 14:23:07 -05:00
2024-03-11 17:11:28 -07:00
2024-04-01 11:53:37 -06:00
2023-02-14 14:23:06 -05:00
2024-03-21 14:41:00 -07:00
2024-03-06 08:59:53 -08:00
2024-03-06 08:59:53 -08:00
2024-03-06 08:59:53 -08:00
2024-03-11 11:43:44 -07:00