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
This commit is contained in:
Mark Johnston 2022-06-09 07:17:32 +03:00 committed by Konstantin Belousov
parent 1b4701fe1e
commit 2d5ef216b6

View File

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