Skip to content

Fix recovery flags on failed RAID10 reshape

[email protected] dm-devel linux-raid lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- Add the dm-raid error-path fix first, as suggested by Yu Kuai.
- Keep the original RAID10 change as the second patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dm raid: Clear MD_RECOVERY_WAIT on reshape setup failuredrivers/md/dm-raid.c+7 -30 replies
2/2md/raid10: Preserve recovery flags on reshape abortdrivers/md/raid10.c+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix recovery flags on failed RAID10 reshape

From: Hristos Nenkov <[email protected]>

Hi Kuai,

Thanks for the review. This revision implements the ordering you suggested. Patch 1 clears MD_RECOVERY_WAIT in dm-raid on all three reshape setup errors. Patch 2 removes the recovery-word reset from the RAID10 abort path.

Checks: checkpatch reported no errors or warnings for either diff. Both affected kernel objects built in WSL. Five focused userspace checks passed for the dm-raid flag handling. I did not run a live-kernel reshape regression test.

I used OpenAI Codex to apply the review feedback, prepare the v2 changelog and run the checks above.

Changes in v2:
- Add the dm-raid error-path fix first, as suggested by Yu Kuai.
- Keep the original RAID10 change as the second patch.

Hristos Nenkov (2):
dm raid: Clear MD_RECOVERY_WAIT on reshape setup failure md/raid10: Preserve recovery flags on reshape abort

 drivers/md/dm-raid.c | 10 +++++++---
 drivers/md/raid10.c  |  1 -
 2 files changed, 7 insertions(+), 4 deletions(-)

base-commit: b3dfbde62cf1981c4638939c159dfd087b7a72e9