From d544d14494c59958deacf46ada55cdefbab4859a Mon Sep 17 00:00:00 2001 From: GangCao Date: Tue, 7 Nov 2017 17:39:49 -0500 Subject: [PATCH] nvme: add the traddr for the ctrlr in the failed state When a ctrlr is failed to initialize and to respond other requests, the nvme_ctrlr_fail() will be always called. Add a log there to have the traddr information so that applications can know which ctrlr has the problem. Change-Id: I951062a51349af81a505472f79e3c00a1ead2fbf Signed-off-by: GangCao Reviewed-on: https://review.gerrithub.io/386189 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- lib/nvme/nvme_ctrlr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nvme/nvme_ctrlr.c b/lib/nvme/nvme_ctrlr.c index 36a751243..b50f1be15 100644 --- a/lib/nvme/nvme_ctrlr.c +++ b/lib/nvme/nvme_ctrlr.c @@ -474,6 +474,7 @@ nvme_ctrlr_fail(struct spdk_nvme_ctrlr *ctrlr, bool hot_remove) ctrlr->is_removed = true; } ctrlr->is_failed = true; + SPDK_ERRLOG("ctrlr %s in failed state.\n", ctrlr->trid.traddr); } static void