Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2017 09:58:51 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r325226 - stable/10/sys/dev/iscsi
Message-ID:  <201710310958.v9V9wpSj093472@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Oct 31 09:58:51 2017
New Revision: 325226
URL: https://svnweb.freebsd.org/changeset/base/325226

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

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

Modified: stable/10/sys/dev/iscsi/iscsi.c
==============================================================================
--- stable/10/sys/dev/iscsi/iscsi.c	Tue Oct 31 09:58:19 2017	(r325225)
+++ stable/10/sys/dev/iscsi/iscsi.c	Tue Oct 31 09:58:51 2017	(r325226)
@@ -2384,8 +2384,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



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