Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2024 09:42:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        current@FreeBSD.org
Subject:   [Bug 197921] scheduler: Allow non-migratable threads to bind to their current CPU
Message-ID:  <bug-197921-2597-fPjwO6fMa5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197921-2597@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197921-2597@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D197921

Zhenlei Huang <zlei@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zlei@FreeBSD.org

--- Comment #3 from Zhenlei Huang <zlei@FreeBSD.org> ---
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 on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197921-2597-fPjwO6fMa5>