在 2026/4/29 7:20, Benjamin Marzinski 写道:

> returning DM_MAPIO_REQUEUE from the target map() function only requeues
> the bio during noflush suspends. During regular operations or during
> flushing suspends, it fails the bio. Failing the bio during flushing
> suspends is the correct behavior here. We cannot handle the bio, and we
> cannot suspends while it is outstanding. But during normal operations,
> we should not push the bio back to dm. Instead, wait for the reshape
> to be resumed.
>
> Signed-off-by: Benjamin Marzinski<[email protected]>
> ---
>
> Changes from v1:
> - Track the dm device's suspending state in mddev->flags instead of
>    adding a new integer to mddev.
>
>   drivers/md/dm-raid.c | 6 ++++++
>   drivers/md/md.h      | 2 ++
>   drivers/md/raid5.c   | 7 +++++--
>   3 files changed, 13 insertions(+), 2 deletions(-)

Applied to md-7.2

-- 
Thansk,
Kuai

Reply via email to