]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-raid: only requeue bios when dm is suspending
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 28 Apr 2026 23:20:10 +0000 (19:20 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 4 May 2026 12:49:03 +0000 (14:49 +0200)
commit97cb8be0fd4c50d310988e0822f7e91d1711e6f8
tree794842b8bafead1a1468c64ffec6bd6c10f64b33
parent758a43cd4e7907513505eebb6c266d8ab84f9e96
dm-raid: only requeue bios when dm is suspending

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 <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-raid.c
drivers/md/md.h
drivers/md/raid5.c