DragonFly commits List (threaded) for 2009-01
DragonFly BSD
DragonFly commits List (threaded) for 2009-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.1.1.458.g3f9b4 master sys/vfs/hammer hammer_vnops.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Jan 2009 23:19:48 -0800 (PST)

commit 3f9b4cfa354fa847568bf60bb411929ef858e6a5
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Jan 24 23:08:46 2009 -0800

    HAMMER VFS - Fix deadlock in rmdir
    
    hammer_vop_rmdir() maintains a cursor at the directory entry being deleted,
    and then calls hammer_ip_check_directory_empty() to check if the directory
    is empty.  The check code creates a second, nested cursor.
    
    Any locks on the first cursor must be released in order to allow the
    function to block while scanning the second cursor to avoid possible
    deadlocks.

Summary of changes:
 sys/vfs/hammer/hammer_vnops.c |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3f9b4cfa354fa847568bf60bb411929ef858e6a5


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]