All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] nvmet: use symbolic constants for log identifiers
@ 2017-03-05 22:30 Max Gurtovoy
  2017-03-06 11:25 ` Sagi Grimberg
  2017-03-08 15:47 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Max Gurtovoy @ 2017-03-05 22:30 UTC (permalink / raw)


Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
Reviewed-by: Parav Pandit <parav at mellanox.com>
---
 drivers/nvme/target/admin-cmd.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index a7bcff4..7502269 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -121,7 +121,7 @@ static void nvmet_execute_get_log_page(struct nvmet_req *req)
 	}
 
 	switch (req->cmd->get_log_page.lid) {
-	case 0x01:
+	case NVME_LOG_ERROR:
 		/*
 		 * We currently never set the More bit in the status field,
 		 * so all error log entries are invalid and can be zeroed out.
@@ -129,7 +129,7 @@ static void nvmet_execute_get_log_page(struct nvmet_req *req)
 		 * mandatory log page.
 		 */
 		break;
-	case 0x02:
+	case NVME_LOG_SMART:
 		/*
 		 * XXX: fill out actual smart log
 		 *
@@ -149,7 +149,7 @@ static void nvmet_execute_get_log_page(struct nvmet_req *req)
 			goto err;
 		}
 		break;
-	case 0x03:
+	case NVME_LOG_FW_SLOT:
 		/*
 		 * We only support a single firmware slot which always is
 		 * active, so we can zero out the whole firmware slot log and
@@ -502,9 +502,9 @@ int nvmet_parse_admin_cmd(struct nvmet_req *req)
 		req->data_len = nvmet_get_log_page_len(cmd);
 
 		switch (cmd->get_log_page.lid) {
-		case 0x01:
-		case 0x02:
-		case 0x03:
+		case NVME_LOG_ERROR:
+		case NVME_LOG_SMART:
+		case NVME_LOG_FW_SLOT:
 			req->execute = nvmet_execute_get_log_page;
 			return 0;
 		}
-- 
1.7.1

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

* [PATCH 1/1] nvmet: use symbolic constants for log identifiers
  2017-03-05 22:30 [PATCH 1/1] nvmet: use symbolic constants for log identifiers Max Gurtovoy
@ 2017-03-06 11:25 ` Sagi Grimberg
  2017-03-08 15:47 ` Christoph Hellwig
  1 sibling, 0 replies; 5+ messages in thread
From: Sagi Grimberg @ 2017-03-06 11:25 UTC (permalink / raw)


Looks good,

Reviewed-by: Sagi Grimberg <sagi at grimberg.me>

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

* [PATCH 1/1] nvmet: use symbolic constants for log identifiers
  2017-03-05 22:30 [PATCH 1/1] nvmet: use symbolic constants for log identifiers Max Gurtovoy
  2017-03-06 11:25 ` Sagi Grimberg
@ 2017-03-08 15:47 ` Christoph Hellwig
  2017-03-28  8:59   ` Max Gurtovoy
  1 sibling, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2017-03-08 15:47 UTC (permalink / raw)


Looks fine:

Reviewed-by: Christoph Hellwig <hch at lst.de>

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

* [PATCH 1/1] nvmet: use symbolic constants for log identifiers
  2017-03-08 15:47 ` Christoph Hellwig
@ 2017-03-28  8:59   ` Max Gurtovoy
  2017-03-28 10:24     ` Sagi Grimberg
  0 siblings, 1 reply; 5+ messages in thread
From: Max Gurtovoy @ 2017-03-28  8:59 UTC (permalink / raw)




On 3/8/2017 5:47 PM, Christoph Hellwig wrote:
> Looks fine:
>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
>

Sagi/Christoph,
I think you haven't merge this patch yet..

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

* [PATCH 1/1] nvmet: use symbolic constants for log identifiers
  2017-03-28  8:59   ` Max Gurtovoy
@ 2017-03-28 10:24     ` Sagi Grimberg
  0 siblings, 0 replies; 5+ messages in thread
From: Sagi Grimberg @ 2017-03-28 10:24 UTC (permalink / raw)


> Sagi/Christoph,
> I think you haven't merge this patch yet..

Its queued for 4.12

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

end of thread, other threads:[~2017-03-28 10:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-05 22:30 [PATCH 1/1] nvmet: use symbolic constants for log identifiers Max Gurtovoy
2017-03-06 11:25 ` Sagi Grimberg
2017-03-08 15:47 ` Christoph Hellwig
2017-03-28  8:59   ` Max Gurtovoy
2017-03-28 10:24     ` Sagi Grimberg

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.