nvme: expose subsystem type in sysfs attribute 'subsystype'
authorHannes Reinecke <hare@suse.de>
Wed, 22 Sep 2021 06:35:23 +0000 (08:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:16:02 +0000 (19:16 +0200)
commit954ae16681f6bdf684f016ca626329302a38e177
treeab8b670e3fba1f237180fafff8a852b4284eb83f
parentd3aef70124e7f69975eabeb340866bc91672532d
nvme: expose subsystem type in sysfs attribute 'subsystype'

With unique discovery controller NQNs we cannot distinguish the
subsystem type by the NQN alone, but need to check the subsystem
type, too.
So expose the subsystem type in a new sysfs attribute 'subsystype'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h