Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2017 14:59:31 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324957 - head/sys/dev/iscsi
Message-ID:  <201710241459.v9OExVSF003079@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Oct 24 14:59:31 2017
New Revision: 324957
URL: https://svnweb.freebsd.org/changeset/base/324957

Log:
  iscsi_shutdown_post: do nothing if panic-ing
  
  There is nothing that that routine should or could really do in that
  context.
  
  Reported by:	Ben RUBSON <ben.rubson@gmail.com>
  MFC after:	1 week

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

Modified: head/sys/dev/iscsi/iscsi.c
==============================================================================
--- head/sys/dev/iscsi/iscsi.c	Tue Oct 24 14:34:25 2017	(r324956)
+++ head/sys/dev/iscsi/iscsi.c	Tue Oct 24 14:59:31 2017	(r324957)
@@ -2458,8 +2458,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?201710241459.v9OExVSF003079>