From: Keith Busch <kbusch@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>,
Anton Eidelman <anton.eidelman@gmail.com>,
linux-nvme@lists.infradead.org, axboe@fb.com,
Anton Eidelman <anton@lightbitslabs.com>,
Chaitanya Kulkarni <kch@nvidia.com>
Subject: Re: [PATCH v2 3/3] nvme/multipath: fix stale ana state for namespaces just added by scan work
Date: Tue, 14 Sep 2021 07:24:36 -0700 [thread overview]
Message-ID: <20210914142436.GA3614138@dhcp-10-100-145-180.wdc.com> (raw)
In-Reply-To: <20210914063052.GA27942@lst.de>
On Tue, Sep 14, 2021 at 08:30:52AM +0200, Christoph Hellwig wrote:
> On Tue, Sep 14, 2021 at 09:24:30AM +0300, Sagi Grimberg wrote:
> > I agree it should not happen with xarray as inserts preserve sorting,
> > but that patch has the non-trivial removal of the namespaces_rwsem which
> > synchronizes in a lot in a lot of error recovery flows. It's very
> > possible that xarray will introduce regressions.
>
> I've actually started looking over the series earlier today, and staring
> it I'm pretty sure the namespaces_rwsem is completely broken. There
> is nothing preventing the namespaces from going away in these loops.
>
> But I can't see why we don't just always do a sorted insertation into
> the ->namespaces list. Just trying to figure out the history of the
> delayed sort ATM.
There doesn't appear to be any reason for the delayed list sort. It
looks correct to do a ordered list insert from the beginning.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
next prev parent reply other threads:[~2021-09-14 14:25 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-12 18:54 [PATCH RESEND 0/3] nvme/mpath: fix missed namespaces in ana state update Anton Eidelman
2021-09-12 18:54 ` [PATCH 1/3] nvme/multipath: fix failure to update ns ana state Anton Eidelman
2021-09-12 18:54 ` [PATCH 2/3] nvme/multipath: cosmetic: keep ns nsid locally Anton Eidelman
2021-09-12 18:54 ` [PATCH 3/3] nvme/multipath: fix stale ana state for namespaces just added by scan work Anton Eidelman
2021-09-13 15:30 ` [PATCH v2 0/3] nvme/mpath: fix missed namespaces in ana state update Anton Eidelman
2021-09-13 15:30 ` [PATCH v2 1/3] nvme/multipath: fix failure to update ns ana state Anton Eidelman
2021-09-13 16:01 ` Christoph Hellwig
2021-09-13 19:29 ` Sagi Grimberg
2021-09-14 8:27 ` Christoph Hellwig
2021-09-13 15:30 ` [PATCH v2 2/3] nvme/multipath: cosmetic: keep ns nsid locally Anton Eidelman
2021-09-13 16:02 ` Christoph Hellwig
2021-09-13 20:19 ` Anton Eidelman
2021-09-13 20:57 ` Keith Busch
2021-09-14 5:44 ` Christoph Hellwig
2021-09-13 15:30 ` [PATCH v2 3/3] nvme/multipath: fix stale ana state for namespaces just added by scan work Anton Eidelman
2021-09-13 16:03 ` Christoph Hellwig
2021-09-13 16:08 ` Keith Busch
2021-09-14 6:24 ` Sagi Grimberg
2021-09-14 6:30 ` Christoph Hellwig
2021-09-14 6:40 ` Christoph Hellwig
2021-09-14 7:09 ` Sagi Grimberg
2021-09-14 7:32 ` Christoph Hellwig
2021-09-14 16:45 ` Anton Eidelman
2021-09-15 9:32 ` Sagi Grimberg
2021-09-14 14:24 ` Keith Busch [this message]
2021-09-13 16:07 ` Keith Busch
2021-09-13 16:11 ` Christoph Hellwig
2021-09-13 16:24 ` Keith Busch
2021-09-13 16:46 ` Anton Eidelman
2021-09-13 15:32 ` [PATCH v2 0/3] nvme/mpath: fix missed namespaces in ana state update Christoph Hellwig
2021-09-13 15:42 ` [PATCH v2 0/3] nvme/mpath: fix missed namespaces in ana state update FIXED Anton Eidelman
2021-09-13 21:46 ` [PATCH v3 0/3] nvme/mpath: fix missed namespaces in ana state update Anton Eidelman
2021-09-13 21:46 ` [PATCH v3 1/3] nvme/multipath: fix failure to update ns ana state Anton Eidelman
2021-09-13 21:46 ` [PATCH v3 2/3] nvme/multipath: cosmetic: keep ns nsid locally Anton Eidelman
2021-09-13 21:46 ` [PATCH v3 3/3] nvme/multipath: fix stale ana state for namespaces just added by scan work Anton Eidelman
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=20210914142436.GA3614138@dhcp-10-100-145-180.wdc.com \
--to=kbusch@kernel.org \
--cc=anton.eidelman@gmail.com \
--cc=anton@lightbitslabs.com \
--cc=axboe@fb.com \
--cc=hch@lst.de \
--cc=kch@nvidia.com \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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).