Thread (5 messages) 5 messages, 3 authors, 2021-09-09

Re: [PATCH v2] nvme: avoid race in shutdown namespace removal

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-09-06 08:03:40
Also in: lkml

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?

_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help