iscsi: trace initiator and target name when handling nop
Trace the initiator and target name for debugging purpose. Change-Id: I89230484072a7f12a58b4234abd1026a228f302a Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/403690 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
7f3e956c73
commit
619a4f9418
@ -914,6 +914,8 @@ spdk_iscsi_conn_handle_nop(struct spdk_iscsi_conn *conn)
|
|||||||
if ((tsc - conn->last_nopin) > (conn->timeout * spdk_get_ticks_hz())) {
|
if ((tsc - conn->last_nopin) > (conn->timeout * spdk_get_ticks_hz())) {
|
||||||
SPDK_ERRLOG("Timed out waiting for NOP-Out response from initiator\n");
|
SPDK_ERRLOG("Timed out waiting for NOP-Out response from initiator\n");
|
||||||
SPDK_ERRLOG(" tsc=0x%lx, last_nopin=0x%lx\n", tsc, conn->last_nopin);
|
SPDK_ERRLOG(" tsc=0x%lx, last_nopin=0x%lx\n", tsc, conn->last_nopin);
|
||||||
|
SPDK_ERRLOG(" initiator=%s, target=%s\n", conn->initiator_name,
|
||||||
|
conn->target_short_name);
|
||||||
conn->state = ISCSI_CONN_STATE_EXITING;
|
conn->state = ISCSI_CONN_STATE_EXITING;
|
||||||
}
|
}
|
||||||
} else if (tsc - conn->last_nopin > conn->nopininterval) {
|
} else if (tsc - conn->last_nopin > conn->nopininterval) {
|
||||||
|
Loading…
Reference in New Issue
Block a user