Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-core: trace discovery log change AEN
@ 2019-05-06 19:33 Chaitanya Kulkarni
  2019-05-08 18:00 ` Chaitanya Kulkarni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-06 19:33 UTC (permalink / raw)


This patch allows the user to trace discovery log change notification.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
 drivers/nvme/host/core.c  | 3 +++
 drivers/nvme/host/trace.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index cd16d98d1f1a..32e12ee42785 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3615,6 +3615,9 @@ static void nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result)
 		trace_nvme_async_event(ctrl, aer_notice_type);
 		queue_work(nvme_wq, &ctrl->fw_act_work);
 		break;
+	case NVME_AER_NOTICE_DISC_CHANGED:
+		trace_nvme_async_event(ctrl, aer_notice_type);
+		break;
 #ifdef CONFIG_NVME_MULTIPATH
 	case NVME_AER_NOTICE_ANA:
 		trace_nvme_async_event(ctrl, aer_notice_type);
diff --git a/drivers/nvme/host/trace.h b/drivers/nvme/host/trace.h
index 97d3c77365b8..f2fda5fb01fb 100644
--- a/drivers/nvme/host/trace.h
+++ b/drivers/nvme/host/trace.h
@@ -165,6 +165,7 @@ TRACE_EVENT(nvme_async_event,
 		__entry->ctrl_id, __entry->result,
 		__print_symbolic(__entry->result,
 		aer_name(NVME_AER_NOTICE_NS_CHANGED),
+		aer_name(NVME_AER_NOTICE_DISC_CHANGED).
 		aer_name(NVME_AER_NOTICE_ANA),
 		aer_name(NVME_AER_NOTICE_FW_ACT_STARTING),
 		aer_name(NVME_AER_ERROR),
-- 
2.17.0

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

end of thread, other threads:[~2019-05-13 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-06 19:33 [PATCH] nvme-core: trace discovery log change AEN Chaitanya Kulkarni
2019-05-08 18:00 ` Chaitanya Kulkarni
2019-05-09  8:27 ` Johannes Thumshirn
2019-05-13 13:24 ` Christoph Hellwig
2019-05-13 16:32   ` Chaitanya Kulkarni
2019-05-13 16:35     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox