]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: add nvmet_is_disc_subsys() helper
authorHannes Reinecke <hare@suse.de>
Wed, 22 Sep 2021 06:35:21 +0000 (08:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Oct 2021 17:16:02 +0000 (19:16 +0200)
commit7d03d4c10ae9a0a493769e2750edfa0d3a4b6893
treefcb3968a5d09620f3fc7a926f4a0c8c82ee9eeee
parentb4b36c9dc1a6108b9b21ad2651dbd8863ebe0d24
nvmet: add nvmet_is_disc_subsys() helper

Add a helper function to determine if a given subsystem is a discovery
subsystem.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h