Thread (50 messages) 50 messages, 6 authors, 2017-10-23

Re: [PATCH 15/17] nvme: track shared namespaces

From: Javier González <hidden>
Date: 2017-10-20 19:03:46
Also in: linux-nvme

Javier
On 18 Oct 2017, at 18.52, Christoph Hellwig [off-list ref] wrote:

Introduce a new struct nvme_ns_head that holds information about an actual
namespace, unlike struct nvme_ns, which only holds the per-controller
namespace information.  For private namespaces there is a 1:1 relation of
the two, but for shared namespaces this lets us discover all the paths to
it.  For now only the identifiers are moved to the new structure, but most
of the information in struct nvme_ns should eventually move over.

To allow lockless path lookup the list of nvme_ns structures per
nvme_ns_head is protected by SRCU, which requires freeing the nvme_ns
structure through call_srcu.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <redacted>
---
drivers/nvme/host/core.c     | 192 +++++++++++++++++++++++++++++++++++++------
drivers/nvme/host/lightnvm.c |  14 ++--
drivers/nvme/host/nvme.h     |  21 ++++-
3 files changed, 192 insertions(+), 35 deletions(-)
LGTM

Reviewed-by: Javier González <redacted>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help