summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-05-25 17:16:09 +0200
committerChristoph Hellwig <hch@lst.de>2018-06-01 14:37:35 +0200
commitc16734ea98f5549fed9a1af47e943a45855274e0 (patch)
tree5921c34c91f029ad23ec1df30c4444f4d8ce5002 /drivers/nvme/target/nvmet.h
parentnvmet: split log page implementation (diff)
downloadlinux-c16734ea98f5549fed9a1af47e943a45855274e0.tar.xz
linux-c16734ea98f5549fed9a1af47e943a45855274e0.zip
nvmet: implement the changed namespaces log
Just keep a per-controller buffer of changed namespaces and copy it out in the get log page implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r--drivers/nvme/target/nvmet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index 768abe203298..8cdc1e550396 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -135,6 +135,9 @@ struct nvmet_ctrl {
const struct nvmet_fabrics_ops *ops;
+ __le32 *changed_ns_list;
+ u32 nr_changed_ns;
+
char subsysnqn[NVMF_NQN_FIELD_LEN];
char hostnqn[NVMF_NQN_FIELD_LEN];
};