Received: by mail.netbsd.org (Postfix, from userid 605) id CCF9784E78; Wed, 28 Feb 2024 04:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1709093582; bh=qXd88rj3V5rocxSLlpvUp1uxaHaPxO5iFEP6Lm4x0q8=; h=Date:From:Subject:To:List-Id:Reply-To:List-Unsubscribe; b=PItuvAGtGoFGyHjRw9h37zXPnLKQRSvd4zJdfU/kRnftyXzKIpdEoqbSrnlcUN9ml Go1TYuuu7L10EpLHJqjNrlGXnmfHRWObDF826hRbAWQxNvOgMiCnbCBDEBO7nBMq0g 8zjYUA8FOjeh9EuB0ATg3LzBC7WAWojyU81kHpuI= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B5EE984D4C for ; Wed, 28 Feb 2024 04:13:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id oxLWa9stnEuh for ; Wed, 28 Feb 2024 04:13:00 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 44F0584E92 for ; Wed, 28 Feb 2024 04:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1709093580; bh=qXd88rj3V5rocxSLlpvUp1uxaHaPxO5iFEP6Lm4x0q8=; h=Date:From:Subject:To:Reply-To; b=L6TCG6m33rtBEeVJuPCBf9PBxRsGVwS9y7CVQXQS6xA7eGcdXbAFvZ2zvuazWTQzk fHHhxepb5kD/fK5uJ0PPRfCgKInCOZtxVMZczypBNpNGqs4arWmQRRyjSBzmRPVyXk QFz1W/6TsqTW0J5IQTqKz/2yLXZDlu7pXwRnUXcs= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 289CCFA27; Wed, 28 Feb 2024 04:13:00 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 28 Feb 2024 04:13:00 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20240228041300.289CCFA27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Wed Feb 28 04:13:00 UTC 2024 Modified Files: src/sys/kern: kern_heartbeat.c Log Message: heartbeat(9): No kpreempt_disable/enable in heartbeat_suspend/resume. This causes a leak of l_nopreempt in xc_thread when a CPU is offlined and onlined again, because the offlining heartbeat_suspend and the onlining heartbeat_resume happen in separate xcalls. No change to callers because they are already bound to the CPU: 1. cnpollc does kpreempt_disable/enable itself around the calls to heartbeat_suspend/resume anyway 2. cpu_xc_offline/online run in the xcall thread, which is always bound to the CPU that is being offlined or onlined To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/kern/kern_heartbeat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.