]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8a56a590552551f63c358bd59e6839d33d9525c
treeab8b670e3fba1f237180fafff8a852b4284eb83f
parent1a7213de5ad3135cc8aa21efd67fbdef687738ee
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