svn commit: r325225 - stable/11/sys/dev/iscsi

Andriy Gapon avg at FreeBSD.org
Tue Oct 31 09:58:21 UTC 2017


Author: avg
Date: Tue Oct 31 09:58:19 2017
New Revision: 325225
URL: https://svnweb.freebsd.org/changeset/base/325225

Log:
  MFC r324957: iscsi_shutdown_post: do nothing if panic-ing

Modified:
  stable/11/sys/dev/iscsi/iscsi.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/iscsi/iscsi.c
==============================================================================
--- stable/11/sys/dev/iscsi/iscsi.c	Tue Oct 31 09:57:10 2017	(r325224)
+++ stable/11/sys/dev/iscsi/iscsi.c	Tue Oct 31 09:58:19 2017	(r325225)
@@ -2448,8 +2448,10 @@ static void
 iscsi_shutdown_post(struct iscsi_softc *sc)
 {
 
-	ISCSI_DEBUG("removing all sessions due to shutdown");
-	iscsi_terminate_sessions(sc);
+	if (panicstr == NULL) {
+		ISCSI_DEBUG("removing all sessions due to shutdown");
+		iscsi_terminate_sessions(sc);
+	}
 }
 
 static int


More information about the svn-src-stable mailing list