Do not attempt to access kernel_map in free(). It's a bad idea, and doubly
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 25 Sep 2003 23:44:07 +0000 (23:44 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 25 Sep 2003 23:44:07 +0000 (23:44 +0000)
commita7cf0021704da1d65a6fb3461e9ed1d825c4c628
treea6e957defb8d555017712ba49ddaef23a3e04f7f
parent8fd3e627ee2c3d0dbe7136c313bc7150b59a320d
Do not attempt to access kernel_map in free().  It's a bad idea, and doubly
so because free() can be called through a remote IPI.  Instead the slab's
freelist hysteresis has been moved into malloc().

This fixes a number of reported panics.
sys/kern/kern_slaballoc.c