git: kernel - Fix lost lock in devfs

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Dec 1 15:28:44 PST 2011


commit 495d3a1efd4f8832641e3489717539bbe8d72ebe
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Dec 1 15:22:44 2011 -0800

    kernel - Fix lost lock in devfs
    
    * vn_lock() will always fail if a vnode is undergoing reclamation, do
      not try to unlock/relock in the spec_close code in that case.
    
    * Refactor the error test in devfs_allocv() in case vget() returns
      an error other than ENOENT in the future.

Summary of changes:
 sys/vfs/devfs/devfs_core.c  |    6 +++++-
 sys/vfs/devfs/devfs_vnops.c |   17 +++++++++++++----
 2 files changed, 18 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/495d3a1efd4f8832641e3489717539bbe8d72ebe


-- 
DragonFly BSD source repository





More information about the Commits mailing list