All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nvmet: use macro definition for setting nmic value
@ 2021-09-23 10:17 Max Gurtovoy
  2021-09-23 10:17 ` [PATCH 2/2] nvmet: use macro definitions for setting cmic value Max Gurtovoy
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Max Gurtovoy @ 2021-09-23 10:17 UTC (permalink / raw)
  To: linux-nvme, hch, kbusch, sagi, chaitanyak; +Cc: Max Gurtovoy

This makes the code more readable.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
---
 drivers/nvme/target/admin-cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index aa6d84d8848e..4ee9fe134697 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -536,7 +536,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));
-- 
2.18.1


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-12 13:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 10:17 [PATCH 1/2] nvmet: use macro definition for setting nmic value Max Gurtovoy
2021-09-23 10:17 ` [PATCH 2/2] nvmet: use macro definitions for setting cmic value Max Gurtovoy
2021-09-23 17:20   ` Chaitanya Kulkarni
2021-09-23 19:46     ` Keith Busch
2021-09-27 19:16       ` Chaitanya Kulkarni
2021-09-23 19:46     ` Max Gurtovoy
2021-09-27 19:19       ` Chaitanya Kulkarni
2021-09-25 20:47   ` Sagi Grimberg
2021-09-23 20:06 ` [PATCH 1/2] nvmet: use macro definition for setting nmic value Keith Busch
2021-09-25 20:47 ` Sagi Grimberg
2021-09-27 19:17 ` Chaitanya Kulkarni
2021-10-12 13:13 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.