svn commit: r283765 - stable/10/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sat May 30 08:54:43 UTC 2015


Author: kib
Date: Sat May 30 08:54:42 2015
New Revision: 283765
URL: https://svnweb.freebsd.org/changeset/base/283765

Log:
  MFC r283320:
  Always obey thread request to not stop on non-boundary.

Modified:
  stable/10/sys/kern/kern_thread.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_thread.c
==============================================================================
--- stable/10/sys/kern/kern_thread.c	Sat May 30 08:01:16 2015	(r283764)
+++ stable/10/sys/kern/kern_thread.c	Sat May 30 08:54:42 2015	(r283765)
@@ -867,12 +867,9 @@ thread_suspend_check(int return_instead)
 			return (ERESTART);
 
 		/*
-		 * Ignore suspend requests for stop signals if they
-		 * are deferred.
+		 * Ignore suspend requests if they are deferred.
 		 */
-		if ((P_SHOULDSTOP(p) == P_STOPPED_SIG ||
-		    (p->p_flag & P_TOTAL_STOP) != 0) &&
-		    (td->td_flags & TDF_SBDRY) != 0) {
+		if ((td->td_flags & TDF_SBDRY) != 0) {
 			KASSERT(return_instead,
 			    ("TDF_SBDRY set for unsafe thread_suspend_check"));
 			return (0);


More information about the svn-src-all mailing list