bdev/nvme: Log if reconnecting I/O qpair failed by WARNLOG
We do not know if reconnecting I/O qpair succeeded or failed now. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I030c3d8553efac7878da0fe358a624a502dd8656 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5699 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
2de5aabd92
commit
17a4826687
@ -233,12 +233,17 @@ SPDK_BDEV_MODULE_REGISTER(nvme, &nvme_if)
|
||||
static void
|
||||
bdev_nvme_disconnected_qpair_cb(struct spdk_nvme_qpair *qpair, void *poll_group_ctx)
|
||||
{
|
||||
SPDK_DEBUGLOG(bdev_nvme, "qpar %p is disconnected, attempting reconnect.\n", qpair);
|
||||
int rc;
|
||||
|
||||
SPDK_DEBUGLOG(bdev_nvme, "qpair %p is disconnected, attempting reconnect.\n", qpair);
|
||||
/*
|
||||
* Currently, just try to reconnect indefinitely. If we are doing a reset, the reset will
|
||||
* reconnect a qpair and we will stop getting a callback for this one.
|
||||
*/
|
||||
spdk_nvme_ctrlr_reconnect_io_qpair(qpair);
|
||||
rc = spdk_nvme_ctrlr_reconnect_io_qpair(qpair);
|
||||
if (rc != 0) {
|
||||
SPDK_WARNLOG("Failed to reconnect to qpair %p, errno %d\n", qpair, -rc);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user