linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xiao Ni <xni@redhat.com>
To: linux-raid@vger.kernel.org
Cc: yukuai1@huaweicloud.com, ncroxon@redhat.com, song@kernel.org
Subject: [PATCH V2 0/2] md: call del_gendisk in sync way
Date: Thu, 15 May 2025 17:08:45 +0800	[thread overview]
Message-ID: <20250515090847.2356-1-xni@redhat.com> (raw)

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.

v2: don't remove MD_DELETED

Xiao Ni (2):
  md: Don't clear MD_CLOSING until mddev is freed
  md: call del_gendisk in control path

 drivers/md/md.c | 68 ++++++++++++++++++++++++++++++++++++-------------
 drivers/md/md.h | 16 +++++++++++-
 2 files changed, 65 insertions(+), 19 deletions(-)

-- 
2.32.0 (Apple Git-132)


             reply	other threads:[~2025-05-15  9:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-15  9:08 Xiao Ni [this message]
2025-05-15  9:08 ` [PATCH 1/2] md: Don't clear MD_CLOSING until mddev is freed Xiao Ni
2025-05-27  2:01   ` Yu Kuai
2025-05-30  6:48   ` Yu Kuai
2025-05-30  6:58     ` Xiao Ni
2025-05-30  7:57     ` Xiao Ni
2025-05-30  8:11       ` Yu Kuai
2025-05-15  9:08 ` [PATCH 2/2] md: call del_gendisk in control path Xiao Ni
2025-05-27  2:11   ` Yu Kuai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250515090847.2356-1-xni@redhat.com \
    --to=xni@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ncroxon@redhat.com \
    --cc=song@kernel.org \
    --cc=yukuai1@huaweicloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).