kernel - Add required critical section around tsleep_remove()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Nov 2011 18:51:28 +0000 (10:51 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 11 Nov 2011 18:52:13 +0000 (10:52 -0800)
commit957625b2e8403979b52a3f31b35199e852b95662
tree96dc5587180593201fcd9f7511a13e5978a23390
parentf036b531dd9ed54b72cccb01d8ba43d17d5e645e
kernel - Add required critical section around tsleep_remove()

* The tsleep_remove() call requires a critical section to avoid
  racing a wakeup interrupt.

* And assert the requirement in tsleep_remove() itself.
sys/kern/kern_mutex.c
sys/kern/kern_synch.c