From nobody Wed Jul 3 08:02:56 2024 X-Original-To: dev-commits-src-branches@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 4WDXMN5TsLz5MpVr; Wed, 03 Jul 2024 08:02:56 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDXMN3RfYz4GbC; Wed, 3 Jul 2024 08:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719993776; 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=owrDuC2pDDcp5ZGVLUsMGCSpPNA5uWgEIYnsdIW3Uxk=; b=Cm2oZsQDFTZ/8KT7bKyAwHbDmIMb/T+jVaJiNRl3AGgm+AhTAQuW3KcyXO+AtYXMZtcz/F LO/ik//XMgczS74/7TKZXzHtl9gcRl0m/ZOOct4ckXgptz3sEDsXNeeTztMhvgISwYX0eA D03tDjZxd5XsC2+eJ0OiyaaEcHC97GR7xAlj0jQWHa617lKy+zpVe398UM48Q3NLCjThm9 pMn4GzLFcZMuOh1upLEsl3uNQCPb0Gaz2jtDihklrXRw/pIo2d6ttqx0tiBwRDxzXN/+fI AoL0ph5OxNurqVpXUZau5uynor1LorhLv0Kw6+5nwI+24AqE8UH5alvA9z+hJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719993776; a=rsa-sha256; cv=none; b=ou03wY9Z3U9kXQfCl9twJBuSInMnhl0X0iW/yOAPwMqlXmhTvecd0OpM7LrAHjevGQ+CLJ nzTJm78WvcxbsThD6jousG0+84+1KxK+X3xV9Zz3SFqoJq1zqGMQIbKlSvy83gmZb7EnjU 2CvwK307YxtIaSEKk1vIhVUr3fFTIRMTHPvybiaKSRrSEhFdIB139XEEkuN6DspBHo3rmM LQs+oVbVwBg5uZRxQw8+a40jFzdI5QBQQMrNvRgnCkhCwPy8+lYLoAREQ85EkVFiPU5nku OprCCFoKhZSVKxM/kr7O8xTxzEtUNoFumt7c9m3K8gXrh0E/GCzxSyaNpAc6+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719993776; 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=owrDuC2pDDcp5ZGVLUsMGCSpPNA5uWgEIYnsdIW3Uxk=; b=UaxwcYObyFk1N0J967BnQHoGtv0R9TM+lgmX3y5ASsi4yUDz1ry2l43I96j0n+YqbWX1Ap 33B5ICmbmr1WNSQ8LecA7DOXGfs76aLuJPZBmW1vcGuNXju6pnSfaa6S34KRP0kzxMi/aX zvTWLECSOvcdzwRQZTrKDsyQahld9k0gNuOaWj51K15pESq0Vfia1Rl4Mm58HKiy48/p5F PSFz81E5Ero2vphh9brIplRE7Z2zqMQ8kONxhsohr7k8lISXEpmMPbZkv5wxGrduccZrzg EqeOcDAoQspvwQa1kuD4vV8wodwfR8s4oadpYVt1/F2YUtGs3SR/DXZWy0+17g== 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 4WDXMN32pgzN8R; Wed, 3 Jul 2024 08:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46382uPZ014089; Wed, 3 Jul 2024 08:02:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46382uK8014086; Wed, 3 Jul 2024 08:02:56 GMT (envelope-from git) Date: Wed, 3 Jul 2024 08:02:56 GMT Message-Id: <202407030802.46382uK8014086@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 342053a66c16 - stable/14 - sched_unpin(): assert that curthread was pinned List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 342053a66c161c12f6887efac913c80040959ae8 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=342053a66c161c12f6887efac913c80040959ae8 commit 342053a66c161c12f6887efac913c80040959ae8 Author: Konstantin Belousov AuthorDate: 2024-06-25 20:08:22 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-03 08:02:28 +0000 sched_unpin(): assert that curthread was pinned (cherry picked from commit 7e5574f9e5d9df749ffc49657717527cfa93f6b4) --- sys/sys/sched.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/sched.h b/sys/sys/sched.h index 9d37e8f0f999..933f05385675 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -180,6 +180,7 @@ static __inline void sched_unpin(void) { atomic_interrupt_fence(); + MPASS(curthread->td_pinned > 0); curthread->td_pinned--; }