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
