All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-core: fix nvme_setup_cmd trace call
@ 2018-06-07  6:35 Chaitanya Kulkarni
  2018-06-07  7:21 ` Johannes Thumshirn
  2018-06-07  8:49 ` Sagi Grimberg
  0 siblings, 2 replies; 5+ messages in thread
From: Chaitanya Kulkarni @ 2018-06-07  6:35 UTC (permalink / raw)


This patch fixes the trace_nvme_setup_admin_cmd() call, now we use NULL
in place of ns->disk->disk_name when ns variable is NULL.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
 drivers/nvme/host/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 3250f8d72456..6ac682b67e15 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -655,7 +655,7 @@ blk_status_t nvme_setup_cmd(struct nvme_ns *ns, struct request *req,
 	if (ns)
 		trace_nvme_setup_nvm_cmd(ns->disk->disk_name, req->q->id, cmd);
 	else
-		trace_nvme_setup_admin_cmd(ns->disk->disk_name, cmd);
+		trace_nvme_setup_admin_cmd(NULL, cmd);
 	return ret;
 }
 EXPORT_SYMBOL_GPL(nvme_setup_cmd);
-- 
2.17.0

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

end of thread, other threads:[~2018-06-07 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-07  6:35 [PATCH] nvme-core: fix nvme_setup_cmd trace call Chaitanya Kulkarni
2018-06-07  7:21 ` Johannes Thumshirn
2018-06-07 11:08   ` Christoph Hellwig
2018-06-07 11:12     ` Johannes Thumshirn
2018-06-07  8:49 ` 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.