Re: [PATCH] block: fix false warning in bdev_count_inflight_rw()
From: Yu Kuai
Date: Thu Jun 26 2025 - 07:37:18 EST
Hi,
在 2025/06/26 17:34, John Garry 写道:
Is it even safe to even use this function when not used for just
informative purposes? I mean, for example, it is used by md code to
check for idle state - could that check return an invalid result (and
cause harm)?
For md code, I think it's ok, md still use completed IO for idle state.
More importantly, the io_ticks can be wrong due to inflight to be zero,
however, it's inaccurate for a long time and there is no much we can do
:(
Thanks,
Kuai