From nobody Thu Sep 03 16:36:38 2026 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 4hbQGb2RxQz6q2WF for ; Thu, 03 Sep 2026 16:36:39 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hbQGb0QVhz3FQK for ; Thu, 03 Sep 2026 16:36:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788453399; 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=uMIgk8nIOZJEhYhXZlSMb7r4e7u6fhhGBw/COb7ZXto=; b=hkwU7/ELvb2eqPDnomVQZrNp2S9p0ynD/MZ8szPQVLLP7DEKPPkz0dL87JV68kD25TYzE9 PjjkwMVmROmnz4Zd+dbrfNXCK74zCov1lNAknNuCKydtaqrCU1hz4XxW4KCesi51HtEZjr 8wuH42Kaxj7+hD+eA3Ih6CcYW8EVLni1dp5Epwn2EwMoMIRvYBczcSf/YgKxxOVzAZW/5W dWm6KF5ZJaKxv4LDju0jcPdh8giU4hmjaxuMqDadym5uER2DaKRRZPQ7+zG7c9R+Dhg7ty l6RWvuCw7D0iUhrP/PzbCbuGMuEPNLnzT5gK+oS5YtRRq/32LtiY+MaGak5yhQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788453399; a=rsa-sha256; cv=none; b=KpQkmz7DjGPsolqvGA0wU6l6zG96HGOOQCiqYSc2AxlT4RGQ1IKUTL4M1SXy4z/M/9QXy8 5qVbuCv5BvP1b2LLrT/UaRqm7tjrhKEJ09ieoCTKnGZS33worbYpuxvUvNcPoY+BpxCnvX bmV2uOYfh9w1s0GDDqoR5Z51vlXfWJ9CTFDKbqVS+n0SBUwlBlRcURETap2TOby+T++J8H DuLfeE6fBJ+IA5Ym5yxAasZIEchKn0hOtVwhc+TSiVsYs47AT0rO1ppAv7YkJ3c/5NAjX7 lI6u211VC+ecEb3SotaKLp5TaKkF2H4jlGlwbT3zb+I+qt3lCMcLuUrRGB4e6Q== 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=1788453399; 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=uMIgk8nIOZJEhYhXZlSMb7r4e7u6fhhGBw/COb7ZXto=; b=s2mbCCz5yDj3/8AlyvJRY3JvycP9R1PBTHtt1unVi+SrLKKLGvBuc8S1LMxXk7wtgQsRxZ 03PunC/9MJvqGwtXEUPuaEvu3idALPScoWrh0si4asjhSnAquPDwL0E3hQsdVEUyHODvtx /Br4UV4MJvs2pSFKzIyu192vEn/nBIJxW239Yf7jJbeVQji1QLWj1SzEenfNedR6ubAxpj yMLoaHbHaHg8V4qq5MG/CleLk99uf/rKABstooFzQ8hQXggN3mux5vRCGHft5J9IFjbn8+ TYGbmATufOChjbxcNn561k0QBI0fNPXzRQ/0oNVWQbeC8Y2blD9QozAE7Mk12Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hbQGZ6dRWz5cW for ; Thu, 03 Sep 2026 16:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 379ef by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 03 Sep 2026 16:36:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 5ed83588dac8 - stable/15 - g_eli: better handling of absent/disabled CPUs 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5ed83588dac8fb30e893f6dcd1a092116bf07366 Auto-Submitted: auto-generated Date: Thu, 03 Sep 2026 16:36:38 +0000 Message-Id: <6a99a216.379ef.696cdb34@gitrepo.freebsd.org> The branch stable/15 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=5ed83588dac8fb30e893f6dcd1a092116bf07366 commit 5ed83588dac8fb30e893f6dcd1a092116bf07366 Author: Mitchell Horne AuthorDate: 2026-07-13 19:15:00 +0000 Commit: Mitchell Horne CommitDate: 2026-09-03 16:32:36 +0000 g_eli: better handling of absent/disabled CPUs Checking hlt_cpus_mask is a no-op, and the mask will be removed in the next commit. However, we can use the more recent CPU_ABSENT() macro to check the status. Reviewed by: olce MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58157 (cherry picked from commit 63d4f044225d1bb86767759b18c0ae63b25a9c03) --- sys/geom/eli/g_eli.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 5bd2d465183e..bc321a0561c8 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -869,16 +869,6 @@ g_eli_access(struct g_provider *pp, int dr, int dw, int de) return (0); } -static int -g_eli_cpu_is_disabled(int cpu) -{ -#ifdef SMP - return (CPU_ISSET(cpu, &hlt_cpus_mask)); -#else - return (0); -#endif -} - static void g_eli_init_uma(void) { @@ -1095,7 +1085,7 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, struct g_provider *bpp, threads = mp_ncpus; sc->sc_cpubind = (mp_ncpus > 1 && threads == mp_ncpus); for (i = 0; i < threads; i++) { - if (g_eli_cpu_is_disabled(i)) { + if (CPU_ABSENT(i)) { G_ELI_DEBUG(1, "%s: CPU %u disabled, skipping.", bpp->name, i); continue;