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 <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/386189 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
5b707a6e87
commit
d544d14494
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user