svn commit: r312586 - stable/11/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Sat Jan 21 08:43:12 UTC 2017


Author: mav
Date: Sat Jan 21 08:43:11 2017
New Revision: 312586
URL: https://svnweb.freebsd.org/changeset/base/312586

Log:
  MFC r311892: Do not wait for HA thread shutdown if scheduler is stopped.
  
  This wait loop made system hang on panic instead of reboot.

Modified:
  stable/11/sys/cam/ctl/ctl_ha.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/ctl/ctl_ha.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl_ha.c	Sat Jan 21 08:41:00 2017	(r312585)
+++ stable/11/sys/cam/ctl/ctl_ha.c	Sat Jan 21 08:43:11 2017	(r312586)
@@ -1001,7 +1001,7 @@ ctl_ha_msg_shutdown(struct ctl_softc *ct
 		softc->ha_shutdown = 1;
 		softc->ha_wakeup = 1;
 		wakeup(&softc->ha_wakeup);
-		while (softc->ha_shutdown < 2) {
+		while (softc->ha_shutdown < 2 && !SCHEDULER_STOPPED()) {
 			msleep(&softc->ha_wakeup, &softc->ha_lock, 0,
 			    "shutdown", hz);
 		}


More information about the svn-src-stable mailing list