git: kernel - Bring devfs_assume_knotes() uptodate and fix panic

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 25 10:47:35 PDT 2010


commit 377c34618491e4564dfe205f5ecc1ea9d6bd84bc
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 25 10:43:55 2010 -0700

    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.

Summary of changes:
 sys/kern/kern_event.c      |   20 ++++++++++++++++++++
 sys/vfs/devfs/devfs_core.c |   18 +++++-------------
 2 files changed, 25 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/377c34618491e4564dfe205f5ecc1ea9d6bd84bc


-- 
DragonFly BSD source repository





More information about the Commits mailing list