aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-10-18 17:21:36 +0200
committerChristoph Hellwig <hch@lst.de>2021-10-27 08:03:30 +0200
commit598e75934c38e2e8af6be92374053e59df8071ad (patch)
treeea1fcd3b3fc4e2ca8ecc2228d0cded331a4a597d /drivers
parentnvme: add new discovery log page entry definitions (diff)
downloadlinux-dev-598e75934c38e2e8af6be92374053e59df8071ad.tar.xz
linux-dev-598e75934c38e2e8af6be92374053e59df8071ad.zip
nvmet: switch check for subsystem type
Invert the check for discovery subsystem type to allow for additional discovery subsystem types. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/target/nvmet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index f31dcc4fb1a2..af193423c10b 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -579,7 +579,7 @@ static inline struct nvmet_subsys *nvmet_req_subsys(struct nvmet_req *req)
static inline bool nvmet_is_disc_subsys(struct nvmet_subsys *subsys)
{
- return subsys->type == NVME_NQN_DISC;
+ return subsys->type != NVME_NQN_NVME;
}
#ifdef CONFIG_NVME_TARGET_PASSTHRU