LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Daniel Wagner <dwagner@suse.de>, Hannes Reinecke <hare@suse.de>
Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH v2] nvme: avoid race in shutdown namespace removal
Date: Mon, 6 Sep 2021 09:01:04 +0100 [thread overview]
Message-ID: <YTXKwOvCtJOHnhpu@infradead.org> (raw)
In-Reply-To: <20210902092002.67614-1-dwagner@suse.de>
On Thu, Sep 02, 2021 at 11:20:02AM +0200, Daniel Wagner wrote:
> When we remove the siblings entry, we update ns->head->list, hence we
> can't separate the removal and test for being empty. They have to be
> in the same critical section to avoid a race.
>
> To avoid breaking the refcounting imbalance again, add a list empty
> check to nvme_find_ns_head.
Hannes, can you look over this and run your tests on it?
next prev parent reply other threads:[~2021-09-06 8:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 9:20 Daniel Wagner
2021-09-06 8:01 ` Christoph Hellwig [this message]
2021-09-06 8:40 ` Hannes Reinecke
2021-09-09 10:06 ` Hannes Reinecke
2021-09-09 14:09 ` Christoph Hellwig
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=YTXKwOvCtJOHnhpu@infradead.org \
--to=hch@infradead.org \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--subject='Re: [PATCH v2] nvme: avoid race in shutdown namespace removal' \
/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
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).