]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme: also expose the namespace identification sysfs files for mpath nodes
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Nov 2017 12:51:03 +0000 (13:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit5b85b826b8925b3f1910b6613eb82c4df240a5b5
treea4aa1d620a06f876827cff9887b607a7089d026e
parent32acab3181c7053c775ca128c3a5c6ce50197d7f
nvme: also expose the namespace identification sysfs files for mpath nodes

We do this by adding a helper that returns the ns_head for a device that
can belong to either the per-controller or per-subsystem block device
nodes, and otherwise reuse all the existing code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h