[Bug 197921] scheduler: Allow non-migratable threads to bind to their current CPU
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jan 2024 09:42:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197921 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 complain (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) == cpu)` test? I think that is much simpler. -- You are receiving this mail because: You are the assignee for the bug.