From nobody Wed Jun 26 07:04:37 2024 X-Original-To: dev-commits-src-all@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 4W8CPK52Nlz5PCHN; Wed, 26 Jun 2024 07:04:37 +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 4W8CPK48xKz461k; Wed, 26 Jun 2024 07:04:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719385477; 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=mhnBsiUOnWh/u4IFQGUzPNPGVOS+m8KEe+z5MSBPiHY=; b=luZoL5lOeE3nWn4QyDAUdxx5mOWLIomWMzzLRzORv9KHw8HIl/2St3dwxk2/DevRSnGbFz IZbQWdMQYOoT9BttpW34nudkwu1TaeCC52U6mFswOjxzL8A35h460QvzPTRVOIYDinoGJp 4UMc8eomVT01PIieJ1DjH6/Yx3vW4HqHBtgBITaEro0iV3UrkP/TB2tvl4zOESd365ATKl VtTlR9IY2Lwg6jIKSVKrQ1JsPFTTx8YLJ6D/vvMBktSbK1By9kqNJf/2Bsp9sV441YcETP Pkj7xk92ptkJH2zGYs2chbAz3KbW9P/Q5TFdU6Sc7S97I2cUkEef6kVxIDm1ug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719385477; a=rsa-sha256; cv=none; b=MWLzVmRhfedK3LZD09HsT7szcNWllRhW1rB6nLY8T3f1B8p8C5o4zfXeGhKnCsCfDyJtSz Jw/PZpGGVWiKN/5lwn1l2aMXMX55XOB4FMmvKtLQLVmoFhWcxPXHj8EY2zTwTkOboY5cbv ANNsoIZiCNFIhMBy92L6MePG36ddqgdlk31s/GaTuM9u8dlCd17Smqe9cc16+84tVgm0PL GryNpfyVy4/At7d5Sf/8fKm9dUXiYqzmYpz37K0ZIgGIMwxUFOwPisx+ukZjzcAP1NJiHz JUvF0HeRAo5U/SDkYAvfy6lD2YPopXzL9rtgD9GDMjpdJ7zY0uOpQplr8MRTgQ== 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=1719385477; 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=mhnBsiUOnWh/u4IFQGUzPNPGVOS+m8KEe+z5MSBPiHY=; b=vsHAQ1zhvlx9a2cFykquGxJ5AmqtRQm76KOQAu9uyDx5TdXKkHpEBx5CN/SVbtVRtN4Mj9 M0MYaQKZmFOixtmr+fvTETBAXzfXVt2wbwNNLuMe/aSF75PKnDMNmC59FNU3prsi64GxAs WM+tTvQEBAmYM764XXczJsZLr/MFMU9Di0n9c8PeCcqxq3XiD6CAYJAZIMxFUKSoWu3Lfo lRFmsE174LIqWb7Nnv/BLX+I/aksKjUMqqeADeNEosE4WPsmRZnIp4ZDpbcypYLu6dPkKZ 5StjGgsT/e2RK/cPFKWB/Ucw0Ex/hgOGwAz6qGfGZek/o29XDLu/TVeh7kAOaQ== 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 4W8CPK3YwZzbY9; Wed, 26 Jun 2024 07:04:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45Q74b0n091859; Wed, 26 Jun 2024 07:04:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45Q74bjM091856; Wed, 26 Jun 2024 07:04:37 GMT (envelope-from git) Date: Wed, 26 Jun 2024 07:04:37 GMT Message-Id: <202406260704.45Q74bjM091856@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: 7e5574f9e5d9 - main - sched_unpin(): assert that curthread was pinned List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 7e5574f9e5d9df749ffc49657717527cfa93f6b4 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7e5574f9e5d9df749ffc49657717527cfa93f6b4 commit 7e5574f9e5d9df749ffc49657717527cfa93f6b4 Author: Konstantin Belousov AuthorDate: 2024-06-25 20:08:22 +0000 Commit: Konstantin Belousov CommitDate: 2024-06-26 07:04:10 +0000 sched_unpin(): assert that curthread was pinned Reviewed by: emaste, imp, markj, olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D45736 --- sys/sys/sched.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/sched.h b/sys/sys/sched.h index fd84b987d9b1..f017863270b4 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--; }