kqueue: Use critical section for knote cache
commit7a528cd4288465e314f4303843c069fd6c5ea6ac
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 14 Apr 2016 12:45:39 +0000 (14 20:45 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 14 Apr 2016 12:45:39 +0000 (14 20:45 +0800)
tree5b9ddb1ec7a08404630e38a2589e348420f769c5
parentcc7895158078cada3fea692b76f0c14bdea629a6
kqueue: Use critical section for knote cache

So knote_free() can be triggered from interrupt threads safely.

Suggested-by: dillon@
sys/kern/kern_event.c