Commit 1d24d4c
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. The bio cannot be handled, and
dm-raid cannot suspend while it is outstanding. But during normal
operations, dm-raid should not push the bio back to dm. Instead, wait
for the reshape to be resumed.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Reviewed-by: Xiao Ni <xiao@kernel.org>
Link: https://patch.msgid.link/20260428232010.2785514-1-bmarzins@redhat.com
Signed-off-by: Yu Kuai <yukuai@fygo.io>1 parent e99e15f commit 1d24d4c
3 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3831 | 3831 | | |
3832 | 3832 | | |
3833 | 3833 | | |
| 3834 | + | |
3834 | 3835 | | |
3835 | 3836 | | |
3836 | 3837 | | |
| |||
3847 | 3848 | | |
3848 | 3849 | | |
3849 | 3850 | | |
| 3851 | + | |
3850 | 3852 | | |
| 3853 | + | |
3851 | 3854 | | |
3852 | 3855 | | |
3853 | 3856 | | |
3854 | 3857 | | |
3855 | 3858 | | |
3856 | 3859 | | |
| 3860 | + | |
3857 | 3861 | | |
3858 | 3862 | | |
3859 | 3863 | | |
| |||
3864 | 3868 | | |
3865 | 3869 | | |
3866 | 3870 | | |
| 3871 | + | |
| 3872 | + | |
3867 | 3873 | | |
3868 | 3874 | | |
3869 | 3875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6042 | 6042 | | |
6043 | 6043 | | |
6044 | 6044 | | |
6045 | | - | |
6046 | | - | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
| 6048 | + | |
| 6049 | + | |
6047 | 6050 | | |
6048 | 6051 | | |
6049 | 6052 | | |
| |||
0 commit comments