diff options
| author | Xiao Ni <[email protected]> | 2025-06-11 07:31:07 +0000 |
|---|---|---|
| committer | Yu Kuai <[email protected]> | 2025-07-12 09:51:59 +0000 |
| commit | 5f286f33553d600e6c2fb5a23dd6afcf99b3ebac (patch) | |
| tree | 129e8b6ed79fc740ca1a38eb2a5f22720a7c71b5 /net/unix/af_unix.c | |
| parent | md: call del_gendisk in control path (diff) | |
| download | kernel-5f286f33553d600e6c2fb5a23dd6afcf99b3ebac.tar.gz kernel-5f286f33553d600e6c2fb5a23dd6afcf99b3ebac.zip | |
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 efeb53c0e572 ("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]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
