git: kernel - Fix improper unlock/relock sequence in HAMMER

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Mar 23 13:39:42 PDT 2012


commit aad00981445a4e7c60d89f07717d431f8a228e39
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Mar 23 13:36:27 2012 -0700

    kernel - Fix improper unlock/relock sequence in HAMMER
    
    * VOP_FSYNC() can be called during a vnode inactivation or reclaim.
      In this case the vnode lock absolutely cannot be released or it
      can create a window of opportunity for another thread that results
      in a panic.
    
    * Fixes a NFS server crash when multiple clients are trying to
      delete/create/write the same file at the same time.

Summary of changes:
 sys/vfs/hammer/hammer_vnops.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list