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

git: DragonFly_RELEASE_2_10 kernel - Fix a rare nfsnode destruction race


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Apr 2011 21:45:09 -0700 (PDT)

commit d89ccb3cb2caa68f891a7d6825288e584e01b0a8
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Apr 21 02:23:49 2011 -0700

    kernel - Fix a rare nfsnode destruction race
    
    * Clear np->n_vnode atomically (w/ the token held) when removing a
      node from the hash table.  The field was previously not being
      cleared at all which could race the nfsnhash lookup code despite
      the vnode interlock and check the lookup code was performing.
    
    * Remove unnecessary tokens around the remaining nfsnode freeing code
      in the reclaim path.

Summary of changes:
 sys/vfs/nfs/nfs_node.c |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

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


-- 
DragonFly BSD source repository



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