linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V6 0/3] md: call del_gendisk in sync way
@ 2025-06-11  7:31 Xiao Ni
  2025-06-11  7:31 ` [PATCH 1/3] md: call del_gendisk in control path Xiao Ni
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Xiao Ni @ 2025-06-11  7:31 UTC (permalink / raw)
  To: linux-raid; +Cc: yukuai3, ncroxon, song, yukuai1

Now del_gendisk is called in a queue work which has a small window
that mdadm --stop command exits but the device node still exists.
It causes trouble in regression tests. This patch set tries to resolve
this problem.

v1: replace MD_DELETED with MD_CLOSING
v2: keep MD_CLOSING
v3: call den_gendisk in mddev_unlock, and remove ->to_remove in stop path
and adjust the order of patches
v4: only remove the codes in stop path.
v5: remove sysfs_remove in md_kobj_release and change EBUSY with ENODEV
v6: don't initialize ret and add reviewed-by tag

Xiao Ni (3):
  md: call del_gendisk in control path
  md: Don't clear MD_CLOSING until mddev is freed
  md: remove/add redundancy group only in level change

 drivers/md/md.c | 49 ++++++++++++++++++++++++++-----------------------
 drivers/md/md.h | 26 ++++++++++++++++++++++++--
 2 files changed, 50 insertions(+), 25 deletions(-)

-- 
2.32.0 (Apple Git-132)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-06-16  1:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11  7:31 [PATCH V6 0/3] md: call del_gendisk in sync way Xiao Ni
2025-06-11  7:31 ` [PATCH 1/3] md: call del_gendisk in control path Xiao Ni
2025-06-11  7:31 ` [PATCH 2/3] md: Don't clear MD_CLOSING until mddev is freed Xiao Ni
2025-06-11  7:31 ` [PATCH 3/3] md: remove/add redundancy group only in level change Xiao Ni
2025-06-14  6:46 ` [PATCH V6 0/3] md: call del_gendisk in sync way Yu Kuai
2025-06-14  8:18 ` Yu Kuai
2025-06-15  3:21   ` Xiao Ni
2025-06-16  1:17     ` Yu Kuai
2025-06-16  1:43       ` Xiao Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).