git: hammer2 - Fix rename race

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Dec 2 11:08:41 PST 2017


commit 253d9bc480c460d6ddec4a3833f61a4036c1eaa0
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Dec 2 01:02:59 2017 -0800

    hammer2 - Fix rename race
    
    * Fix a rename race in hammer2 which can result in unwanted namecache
      overloading.  When this occurs, a rename operation can wind up
      deleting the same inode more than once.
    
    * This fixes a "hammer2_chain_getparent: no parent" panic in H2.
    
    Reported-by: kerma

Summary of changes:
 sys/vfs/hammer2/hammer2_vnops.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/253d9bc480c460d6ddec4a3833f61a4036c1eaa0


-- 
DragonFly BSD source repository


More information about the Commits mailing list