NetBSD/src pKELGaM — sys/kern kern_synch.c
In mi_switch(), also call pserialize_switchpoint() if we're not switching to another lwp, as proposed on http://mail-index.netbsd.org/tech-kern/2018/07/20/msg023709.html Without it, on a SMP machine with few processes running (e.g while running sysinst), pserialize could hang for a long time until all CPUs got a LWP to run (or, eventually, forever). Tested on Xen domUs with 4 CPUs, and on a 64-threads AMD machine.
Version | Delta | File | |
---|---|---|---|
1.317 | +3 | -2 | sys/kern/kern_synch.c |
+3 | -2 | 1 files |