From nobody Tue Jan 9 09:42:34 2024 X-Original-To: bugs@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 4T8QvZ6WjJz56vfx for ; Tue, 9 Jan 2024 09:42:34 +0000 (UTC) (envelope-from bugzilla-noreply@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 4T8QvZ4hBQz4NcX for ; Tue, 9 Jan 2024 09:42:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704793354; 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: in-reply-to:in-reply-to:references:references; bh=Km49qB/JDeDf6hQ/ySsoLlK0junV9mbbYQy1wXtGKrY=; b=h3LVGJ3oIuwqao5Q4Vr2nmpwo4RYLvCVMKi2vXChNqZf4JsmA+AsabhlyVv6WurkjrRx/p qcycFgXvpYvpxr9BWhR4/WmS5EeVIcTDhzWCHC/aURKYYVeyz93AtNW3DChdmXPNQAN6Uq gUrNGnG3f2bgdc/8P/1DygG+lEP2cem9BgDjEZ/4Wj7nyOJiGmgVD4Jw5BxHvpVAaV4J8n GAhXr0QAwCamA+xoWiwEn04q7PB5+VQCYLm7/bjNbEiHoaDyflC+s+4FxOVFl5D90Hn8tN 562mgJMH89jsTFt6aARntXKOUDlpKtsqNJZpOID9qZ8d3cAkqwadysfJ+FGLZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704793354; a=rsa-sha256; cv=none; b=Ptp54isw+KCeV4tMXkrSTUAAyFN9JcxWX3ScrDV/9N7P85rFTQnLQkNt3o+LMHo5pvsGl7 6TYYVeUf9AVcf3ZDsqwFuILULR48DhoLk1IhyLjSNo/nMuFThTeV6zlDDkIcw+c3GhvP6a b7t2ySYTy6tgMi3Zfdi9bItk6RxusksQcdCYbYH2HE5QtBu3DRDDORscM7A/CXG/+5ZWxa 4rg7Yogd7geayShsYfMGHL8gkurv4p1CXCYBWN4Dt/iruR5AJrazjM/ZPHSZXwNyOhoj48 Fa1TxQwey/vyUZxb/Z3r1Fof4wrt3mjE0lHe01j5t3ZIOKJ5CmLjITxqVrKIHA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4T8QvZ3kzRzm1b for ; Tue, 9 Jan 2024 09:42:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4099gYjR092237 for ; Tue, 9 Jan 2024 09:42:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4099gYfI092236 for bugs@FreeBSD.org; Tue, 9 Jan 2024 09:42:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 197921] scheduler: Allow non-migratable threads to bind to their current CPU Date: Tue, 09 Jan 2024 09:42:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-patch, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197921 Zhenlei Huang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zlei@FreeBSD.org --- Comment #3 from Zhenlei Huang --- It seems we do not have usage that bind a thread to local CPU, otherwise `KASSERT(THREAD_CAN_MIGRATE(td), ("%p must be migratable", td))` will compl= ain (when kernel built with option INVARIANTS). (In reply to Ed Maste from comment #1) > but, what about just moving the KASSERT after the `if (PCPU_GET(cpuid) = =3D=3D cpu)` test? I think that is much simpler. --=20 You are receiving this mail because: You are the assignee for the bug.=