Add a new light weight function to synchronize IPI queues on other CPUs by
commit4e62328299904c117baf5675dc843d426ab57e4c
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Nov 2007 09:53:19 +0000 (18 09:53 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 18 Nov 2007 09:53:19 +0000 (18 09:53 +0000)
treeb7bcaee18572c1a987463a36a44c2369dea88d1c
parent736b7569ed105025c88c01e96731c5dbb88a48e7
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