aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-21 11:26:03 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-21 11:26:03 +0000
commita3fd63f2239fd3443f61a786e3fa60c2c9d28c6e (patch)
tree9855d75ead2659849075bb923b6ac828dd6e0a29 /sys/dev/iscsi
parent7deb68ab2cb341ac1378440397e89129c9c43f4a (diff)
downloadsrc-a3fd63f2239fd3443f61a786e3fa60c2c9d28c6e.tar.gz
src-a3fd63f2239fd3443f61a786e3fa60c2c9d28c6e.zip
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
Notes
Notes: svn path=/head/; revision=300370
Diffstat (limited to 'sys/dev/iscsi')
-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 d72768ffc3f8..86e3fe45091a 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;