summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorMax Gurtovoy <mgurtovoy@nvidia.com>2021-09-23 12:17:43 +0200
committerChristoph Hellwig <hch@lst.de>2021-10-20 19:16:02 +0200
commit571b5444d1eee112e82eebd0cf877dc510b8b5a5 (patch)
treefaf9a5041bef934e801d9f9386092a213225c3a2 /drivers/nvme
parentnvme: display correct subsystem NQN (diff)
downloadlinux-571b5444d1eee112e82eebd0cf877dc510b8b5a5.tar.xz
linux-571b5444d1eee112e82eebd0cf877dc510b8b5a5.zip
nvmet: use macro definition for setting nmic value
This makes the code more readable. Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/target/admin-cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index 3616a06f7836..dce53030b375 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -541,7 +541,7 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req)
* Our namespace might always be shared. Not just with other
* controllers, but also with any other user of the block device.
*/
- id->nmic = (1 << 0);
+ id->nmic = NVME_NS_NMIC_SHARED;
id->anagrpid = cpu_to_le32(req->ns->anagrpid);
memcpy(&id->nguid, &req->ns->nguid, sizeof(id->nguid));