kernel - Bring devfs_assume_knotes() uptodate and fix panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Sep 2010 17:43:55 +0000 (10:43 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 25 Sep 2010 17:43:55 +0000 (10:43 -0700)
commit377c34618491e4564dfe205f5ecc1ea9d6bd84bc
tree63c752af8bf561df3a65ff18b6485bad3adb4e29
parent036ea0c3142400d6417e92fe874773752d683044
kernel - Bring devfs_assume_knotes() uptodate and fix panic

* devfs_assume_knotes() was blindly transfering the knotes without
  properly acquiring their soft-lock.

  The problem was easily reproducable by running 'moused -p /dev/ums0'
  and then unplugging the mouse.

* Move the core of the routine into a new procedure in kern_event.c
  called knote_assume_knotes() which properly acquires and releases
  the underlying knotes.
sys/kern/kern_event.c
sys/vfs/devfs/devfs_core.c