Commit da8dfd1
committed
md: Don't clear MD_CLOSING until mddev is freed
JIRA: https://issues.redhat.com/browse/RHEL-123668
commit 5f286f3
Author: Xiao Ni <xni@redhat.com>
Date: Wed Jun 11 15:31:07 2025 +0800
md: Don't clear MD_CLOSING until mddev is freed
UNTIL_STOP is used to avoid mddev is freed on the last close before adding
disks to mddev. And it should be cleared when stopping an array which is
mentioned in commit efeb53c ("md: Allow md devices to be created by
name."). So reset ->hold_active to 0 in md_clean.
And MD_CLOSING should be kept until mddev is freed to avoid reopen.
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Link: https://lore.kernel.org/linux-raid/20250611073108.25463-3-xni@redhat.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>1 parent 60ea9ec commit da8dfd1
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6498 | 6498 | | |
6499 | 6499 | | |
6500 | 6500 | | |
6501 | | - | |
6502 | | - | |
6503 | | - | |
6504 | | - | |
6505 | | - | |
6506 | | - | |
6507 | | - | |
6508 | | - | |
6509 | | - | |
| 6501 | + | |
| 6502 | + | |
| 6503 | + | |
| 6504 | + | |
6510 | 6505 | | |
6511 | 6506 | | |
6512 | 6507 | | |
| |||
6734 | 6729 | | |
6735 | 6730 | | |
6736 | 6731 | | |
6737 | | - | |
6738 | | - | |
6739 | | - | |
6740 | 6732 | | |
6741 | 6733 | | |
6742 | 6734 | | |
| |||
0 commit comments