This patch clears some flags and counters related stopping an array and calls del_gendisk in sync way. This patch set can cause a deadlock when stopping imsm raid1, I'm investigating this deadlock problem to resovle this. Xiao Ni (3): md: replace MD_DELETED with MD_CLOSING md: replace ->openers with ->active md: call del_gendisk in sync way drivers/md/md.c | 67 ++++++++++++++++++++++--------------------------- drivers/md/md.h | 13 ---------- 2 files changed, 30 insertions(+), 50 deletions(-) -- 2.32.0 (Apple Git-132)