diff options
author | Mark Johnston <markj@FreeBSD.org> | 2022-06-09 04:17:32 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-06-13 19:30:03 +0000 |
commit | 2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252 (patch) | |
tree | 25cec2fd37f2f1845affc21ef3c70794ae1c8206 | |
parent | 1b4701fe1e840f9ce5dae557b4dd99bda8a85735 (diff) | |
download | src-2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252.tar.gz src-2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252.zip |
thread_single_end(): consistently maintain p_boundary_count for ALLPROC mode
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 week
Differential revision: https://reviews.freebsd.org/D35310
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 98e1afddc08e..b00cd2b3c695 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1673,7 +1673,7 @@ thread_single_end(struct proc *p, int mode) thread_lock(td); if (TD_IS_SUSPENDED(td)) { wakeup_swapper |= thread_unsuspend_one(td, p, - mode == SINGLE_BOUNDARY); + true); } else thread_unlock(td); } |