Re: [PATCH v2] dm-raid: only requeue bios when dm is suspending.

"Yu Kuai" <[email protected]>
Newsgroups gmane.linux.kernel.device-mapper.devel,gmane.linux.raid
Message-ID <[email protected]>
在 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.