]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: track subsystems
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Nov 2017 12:48:55 +0000 (13:48 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commit5d6ab0cab76740e29bad2d52dc2d2db12cb97063
tree968969f6db8220c5b7b08c11fd821d077c721a3d
parent48d2ba4fa019864019a12839d50aa6c6b2a6f37a
nvme: track subsystems

This adds a new nvme_subsystem structure so that we can track multiple
controllers that belong to a single subsystem.  For now we only use it
to store the NQN, and to check that we don't have duplicate NQNs unless
the involved subsystems support multiple controllers.

Includes code originally from Hannes Reinecke to expose the subsystems
in sysfs.

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