summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorNoam Gottlieb <ngottlieb@nvidia.com>2021-06-07 12:23:22 +0300
committerChristoph Hellwig <hch@lst.de>2021-06-17 15:51:19 +0200
commit7ae023c5aa644211bde26db11018fe08b8408bd5 (patch)
treed0b33f08cfd31fe77c429d2b1050148efa6779e2 /drivers/nvme/target/nvmet.h
parente13b061589ace0aee18bdbf86f3ddb2b6b5b5ab8 (diff)
downloadlinux-7ae023c5aa644211bde26db11018fe08b8408bd5.tar.bz2
nvmet: make sn stable once connection was established
Once some host has connected to the target, make sure that the serial number is stable and cannot be changed. Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Noam Gottlieb <ngottlieb@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r--drivers/nvme/target/nvmet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index 0ae809ca428c..bd0a0b91d843 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -231,6 +231,7 @@ struct nvmet_subsys {
u64 ver;
char serial[NVMET_SN_MAX_SIZE];
+ bool subsys_discovered;
char *subsysnqn;
bool pi_support;