MFC r283320:

Always obey thread request to not stop on non-boundary.
This commit is contained in:
kib 2015-05-30 08:54:42 +00:00
parent 8389b2b3fd
commit 80880ee480

View File

@ -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);