diff options
author | kib <kib@FreeBSD.org> | 2015-05-30 08:54:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-05-30 08:54:42 +0000 |
commit | 80880ee480bdc5f5a959b76200002bf202ab4373 (patch) | |
tree | 09358ad7753aef7258077bc50ff2c2f41a57e4dd | |
parent | 8389b2b3fd8301752276d9baee209b08b6ed56ca (diff) | |
download | FreeBSD-src-80880ee480bdc5f5a959b76200002bf202ab4373.zip FreeBSD-src-80880ee480bdc5f5a959b76200002bf202ab4373.tar.gz |
MFC r283320:
Always obey thread request to not stop on non-boundary.
-rw-r--r-- | sys/kern/kern_thread.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 739ef21..71e0f4f 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -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); |