Blob Blame History Raw
From: Hannes Reinecke <hare@suse.de>
Date: Mon, 18 Oct 2021 17:21:36 +0200
Subject: nvmet: switch check for subsystem type
Patch-mainline: v5.16-rc1
Git-commit: 598e75934c38e2e8af6be92374053e59df8071ad
References: bsc#1192761

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>
Acked-by: Daniel Wagner <dwagner@suse.de>
---
 drivers/nvme/target/nvmet.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -554,7 +554,7 @@ static inline struct nvmet_subsys *nvmet
 
 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