From 619a4f9418182b0398b705e2c2cea54827832897 Mon Sep 17 00:00:00 2001 From: GangCao Date: Tue, 13 Mar 2018 03:55:40 -0400 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/403690 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris --- lib/iscsi/conn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index d8a64c17d..c1be0fca5 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -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())) { 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(" initiator=%s, target=%s\n", conn->initiator_name, + conn->target_short_name); conn->state = ISCSI_CONN_STATE_EXITING; } } else if (tsc - conn->last_nopin > conn->nopininterval) {