linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] md: call del_gendisk in sync way
@ 2025-05-07  2:14 Xiao Ni
  2025-05-07  2:14 ` [PATCH 1/3] md: Don't clear MD_CLOSING until mddev is freed Xiao Ni
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Xiao Ni @ 2025-05-07  2:14 UTC (permalink / raw)
  To: linux-raid; +Cc: song, yukuai1, ncroxon

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.

Xiao Ni (3):
  md: Don't clear MD_CLOSING until mddev is freed
  md: replace MD_DELETED with MD_CLOSING
  md: call del_gendisk in sync way

 drivers/md/md.c | 38 +++++++++++++++++++-------------------
 drivers/md/md.h |  2 --
 2 files changed, 19 insertions(+), 21 deletions(-)

-- 
2.32.0 (Apple Git-132)


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH RFC 0/3] md: call del_gendisk in sync way
@ 2025-04-28  8:26 Xiao Ni
  2025-04-28  8:26 ` [PATCH 3/3] " Xiao Ni
  0 siblings, 1 reply; 13+ messages in thread
From: Xiao Ni @ 2025-04-28  8:26 UTC (permalink / raw)
  To: linux-raid; +Cc: song, yukuai1, ncroxon, mtkaczyk

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)


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

end of thread, other threads:[~2025-05-12  1:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07  2:14 [PATCH 0/3] md: call del_gendisk in sync way Xiao Ni
2025-05-07  2:14 ` [PATCH 1/3] md: Don't clear MD_CLOSING until mddev is freed Xiao Ni
2025-05-07  2:14 ` [PATCH 2/3] md: replace MD_DELETED with MD_CLOSING Xiao Ni
2025-05-07  6:20   ` Yu Kuai
2025-05-09  9:33     ` Xiao Ni
2025-05-09 10:08       ` Yu Kuai
2025-05-09 10:20         ` Xiao Ni
2025-05-09 10:26           ` Yu Kuai
2025-05-09 11:20             ` Xiao Ni
2025-05-12  1:39               ` Yu Kuai
2025-05-07  2:14 ` [PATCH 3/3] md: call del_gendisk in sync way Xiao Ni
2025-05-07  6:28   ` Yu Kuai
  -- strict thread matches above, loose matches on Subject: below --
2025-04-28  8:26 [PATCH RFC 0/3] " Xiao Ni
2025-04-28  8:26 ` [PATCH 3/3] " 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).