diff options
author | Noam Gottlieb <ngottlieb@nvidia.com> | 2021-06-07 12:23:22 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-06-17 16:51:19 +0300 |
commit | 7ae023c5aa644211bde26db11018fe08b8408bd5 (patch) | |
tree | d0b33f08cfd31fe77c429d2b1050148efa6779e2 /drivers/nvme/target/nvmet.h | |
parent | e13b061589ace0aee18bdbf86f3ddb2b6b5b5ab8 (diff) | |
download | linux-7ae023c5aa644211bde26db11018fe08b8408bd5.tar.xz |
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.h | 1 |
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; |