]> 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)
commit53f559f85332b438568539c2714e92fcd1217bfb
treeab8b670e3fba1f237180fafff8a852b4284eb83f
parent573e271275a4ed9adccebdc2da0c5ca3b9df1463
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