]> git.baikalelectronics.ru Git - kernel.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)
commit7baff9caa7c8fe2945982120e0b42de2ff5ad229
treea4aa1d620a06f876827cff9887b607a7089d026e
parentedb14deef2ac6cf4a12bf8adee65363be2e52372
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