Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2016 11:26:03 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300370 - head/sys/dev/iscsi
Message-ID:  <201605211126.u4LBQ3bb013167@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sat May 21 11:26:03 2016
New Revision: 300370
URL: https://svnweb.freebsd.org/changeset/base/300370

Log:
  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

Modified:
  head/sys/dev/iscsi/iscsi.c

Modified: head/sys/dev/iscsi/iscsi.c
==============================================================================
--- head/sys/dev/iscsi/iscsi.c	Sat May 21 11:10:48 2016	(r300369)
+++ head/sys/dev/iscsi/iscsi.c	Sat May 21 11:26:03 2016	(r300370)
@@ -1552,6 +1552,10 @@ iscsi_ioctl_daemon_connect(struct iscsi_
 	}
 
 	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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605211126.u4LBQ3bb013167>