git: HAMMER VFS - hammer_inode / vp races

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 14 20:07:48 PST 2010


commit e0092341a30906d2f43d89f76d181dd96ccb9802
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jan 14 20:01:54 2010 -0800

    HAMMER VFS - hammer_inode / vp races
    
    * The hammer_inode must be locked when clearing the vp during a reclaim
      to interlock with a concurrent reclaim.
    
    * hammer_get_vnode() must hold the vp while holding the hammer_inode locked
      to prevent destruction when racing against drops or reclaims.
    
    * Remove the HAMMER_INODE_VHELD flag.  Backend truncations and the
      last inode release should acquire the vnode properly now in
      hammer_inode_unloadable_check().

Summary of changes:
 sys/vfs/hammer/hammer.h       |    2 +-
 sys/vfs/hammer/hammer_inode.c |   32 +++++++++++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e0092341a30906d2f43d89f76d181dd96ccb9802


-- 
DragonFly BSD source repository





More information about the Commits mailing list