From nobody Mon Jun 13 19:33:37 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B183A854ECA; Mon, 13 Jun 2022 19:33:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LMMDx4g3Bz3qP3; Mon, 13 Jun 2022 19:33:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655148818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=liN80WlDoY1ZRuMUDBvMMfU5yRXof+9HN/d+3LSe9ds=; b=sH/Qw2zjmzEzxNk7J3yeAOaXtHTlllY1kf0OJkS3GVAlHgclXNPtgDUepMEj4kT8Ok2yB4 qPqtePAufDNa07uA6bdszx2dF462F+Ae1+bGGX3oZZGLpBRQENvQRjGYglTaHwSF3VrXWv W44NwOA7MSpj3fZwjRebLOOJr0bf0e0q50TS03cMyX0DY/lTo2bAyGEra5R/LTwL1bjjox k1+7zrK+h3VX0+R2oSFLqT5QTHnvdaEHylwFwsBcK3g9Ajlq9rUtCihxJi0ga44g2bOEm0 S8Gh+yTNEUlq2JVWMFKuT/cEL5IZaYB3Qd/dlrgAqA0wK5aNpp8zDZ9mqGapGw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 661CB1BE9D; Mon, 13 Jun 2022 19:33:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25DJXb3P023714; Mon, 13 Jun 2022 19:33:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25DJXb6e023713; Mon, 13 Jun 2022 19:33:37 GMT (envelope-from git) Date: Mon, 13 Jun 2022 19:33:37 GMT Message-Id: <202206131933.25DJXb6e023713@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 2d5ef216b679 - main - thread_single_end(): consistently maintain p_boundary_count for ALLPROC mode List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655148818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=liN80WlDoY1ZRuMUDBvMMfU5yRXof+9HN/d+3LSe9ds=; b=SmGm/Ta2mzBijl8FJ2KUkU5fx6TXDuemRgFYPXdoOqzBPulhfHeinddF2hAU4NiyXihucV enbQqw6ikiGDAR3S7Zh4CWJCpRQkXNN8T1Eb6EhbI/N886tB5MGT48Mv3JTpkCFVLjpBun NPrnjSDO9e7v+CYSsjmPzejSVxKNBrjWwEsp3nXcMyukew+tKSBmLqMAPGOa5D5rm3Bpez G7un3ppKy4PaT6hxT/b43DLU68qSCctPyF6wBMhPceRMt91rfyKL7CSukaknloac0qQA2A ZJVSdtxFPtdNCwRNg7E3flLmNtdQhGoYHM9Kq96bpCumqidguJFy2MUEqag3Fw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655148818; a=rsa-sha256; cv=none; b=LT6fnUKWFLeKnxbzLbk0PABgLmtrBUIixDVGLRbtuplDm9epJTyERfGt0aVdORz0OUlKOH 8OxbAxaLaI8tP9IQn3CCirNhWI7Ywv2pnKGt2G09lFqunliUcf+qsSX8scSQw3fKwh3CbD vf54VhNqRB3zvS0U1I4lpqFe2OH3zJ/YhEa6gux43MtL6tH/QjJ89CiEoe1awt2eL9TKMb 0i40XMzv6hpm5l4vSBr37CwSiafD2sTtEyedLVCGdEd/obSzfp7oYqhRQs1HK526qrdWg/ 2kfwbPSEnkMKnWA0MOznOjFaluhjP+fQHzau6dPMHDTvlPEKDordDEduuC7bLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252 commit 2d5ef216b679e0a8d9958f8ce2e2bfc021f5d252 Author: Mark Johnston AuthorDate: 2022-06-09 04:17:32 +0000 Commit: Konstantin Belousov CommitDate: 2022-06-13 19:30:03 +0000 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 --- sys/kern/kern_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }