Add a new light weight function to synchronize IPI queues on other CPUs by
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Nov 2007 09:53:19 +0000 (09:53 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Nov 2007 09:53:19 +0000 (09:53 +0000)
commit6c92c1f21811149277e1f74b367ac4e8358fab33
treef2eb7c8c2d0eab0f7711ac881d46c66087556b4b
parentd878b74657fbf7d97500a88424f00dd556728c4a
Add a new light weight function to synchronize IPI queues on other CPUs by
broadcasting a NOP IPI to other CPUs; this is used be make sure that all
IPIs before the NOP one are processed.

Use this new function to fix a possible race between kfree() and
malloc_uninit():
kfree() may be in transitting state when malloc_uninit() is running.

Ideas-from: dillon@
Reviewed-by: dillon@
sys/kern/kern_slaballoc.c
sys/kern/lwkt_ipiq.c
sys/sys/thread.h