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)
commita294711ed5123f757ed8ed2f103c851b8ee416c9
treefcb3968a5d09620f3fc7a926f4a0c8c82ee9eeee
parente15a8a9755659ff5972f30de4dd64867c97f242d
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