Commit d0a1803
Revert "md: don't unregister sync_thread with reconfig_mutex held"
The 07reshape5intr test is broke because of below path.
md_reap_sync_thread
-> mddev_unlock
-> md_unregister_thread(&mddev->sync_thread)
And md_check_recovery is triggered by,
mddev_unlock -> md_wakeup_thread(mddev->thread)
then mddev->reshape_position is set to MaxSector in raid5_finish_reshape
since MD_RECOVERY_INTR is cleared in md_check_recovery, which means
feature_map is not set with MD_FEATURE_RESHAPE_ACTIVE and superblock's
reshape_position can't be updated accordingly.
Fixes: 8b48ec2 ("md: don't unregister sync_thread with reconfig_mutex held")
Reported-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <song@kernel.org>1 parent 2396e95 commit d0a1803
3 files changed
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3725 | 3725 | | |
3726 | 3726 | | |
3727 | 3727 | | |
3728 | | - | |
| 3728 | + | |
3729 | 3729 | | |
3730 | 3730 | | |
3731 | 3731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4831 | 4831 | | |
4832 | 4832 | | |
4833 | 4833 | | |
4834 | | - | |
| 4834 | + | |
4835 | 4835 | | |
4836 | 4836 | | |
4837 | 4837 | | |
| |||
6197 | 6197 | | |
6198 | 6198 | | |
6199 | 6199 | | |
6200 | | - | |
| 6200 | + | |
6201 | 6201 | | |
6202 | 6202 | | |
6203 | 6203 | | |
| |||
9303 | 9303 | | |
9304 | 9304 | | |
9305 | 9305 | | |
9306 | | - | |
| 9306 | + | |
9307 | 9307 | | |
9308 | 9308 | | |
9309 | 9309 | | |
| |||
9338 | 9338 | | |
9339 | 9339 | | |
9340 | 9340 | | |
9341 | | - | |
| 9341 | + | |
9342 | 9342 | | |
9343 | 9343 | | |
9344 | 9344 | | |
| |||
9411 | 9411 | | |
9412 | 9412 | | |
9413 | 9413 | | |
9414 | | - | |
| 9414 | + | |
9415 | 9415 | | |
9416 | 9416 | | |
9417 | 9417 | | |
9418 | 9418 | | |
9419 | 9419 | | |
9420 | | - | |
9421 | | - | |
9422 | 9420 | | |
9423 | 9421 | | |
9424 | | - | |
9425 | | - | |
9426 | 9422 | | |
9427 | 9423 | | |
9428 | 9424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| |||
0 commit comments