summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-05-21 11:26:03 +0000
committertrasz <trasz@FreeBSD.org>2016-05-21 11:26:03 +0000
commit89480d86568b0f51079e64477c4c7f074db3aa62 (patch)
tree9855d75ead2659849075bb923b6ac828dd6e0a29
parentfe581d2d785d052bb0f63e2bfe73092b3eb7595b (diff)
downloadFreeBSD-src-89480d86568b0f51079e64477c4c7f074db3aa62.zip
FreeBSD-src-89480d86568b0f51079e64477c4c7f074db3aa62.tar.gz
Properly reset session state when using proxy and fail_on_disconnection=1.
Without it the reconnection would fail due to mismatched sequence numbers. MFC after: 1 month Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/dev/iscsi/iscsi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c
index d72768f..86e3fe4 100644
--- a/sys/dev/iscsi/iscsi.c
+++ b/sys/dev/iscsi/iscsi.c
@@ -1552,6 +1552,10 @@ iscsi_ioctl_daemon_connect(struct iscsi_softc *sc,
}
ISCSI_SESSION_LOCK(is);
+ is->is_statsn = 0;
+ is->is_cmdsn = 0;
+ is->is_expcmdsn = 0;
+ is->is_maxcmdsn = 0;
is->is_waiting_for_iscsid = false;
is->is_login_phase = true;
is->is_timeout = 0;
OpenPOWER on IntegriCloud