Commit 5f286f3
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 <[email protected]>
Signed-off-by: Xiao Ni <[email protected]>
Link: https://lore.kernel.org/linux-raid/[email protected]
Signed-off-by: Yu Kuai <[email protected]>1 parent 9e59d60 commit 5f286f3
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6425 | 6425 | | |
6426 | 6426 | | |
6427 | 6427 | | |
6428 | | - | |
6429 | | - | |
6430 | | - | |
6431 | | - | |
6432 | | - | |
6433 | | - | |
6434 | | - | |
6435 | | - | |
6436 | | - | |
| 6428 | + | |
| 6429 | + | |
| 6430 | + | |
| 6431 | + | |
6437 | 6432 | | |
6438 | 6433 | | |
6439 | 6434 | | |
| |||
6660 | 6655 | | |
6661 | 6656 | | |
6662 | 6657 | | |
6663 | | - | |
6664 | | - | |
6665 | | - | |
6666 | 6658 | | |
6667 | 6659 | | |
6668 | 6660 | | |
| |||
0 commit comments