git: hammer2 - Fix inode destroy panic

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jun 28 19:00:17 PDT 2016


commit 8ce9db80715b9067468fe066c422d40b20e27cfa
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jun 28 18:58:58 2016 -0700

    hammer2 - Fix inode destroy panic
    
    * Fix a race in hammer2_inode_xop_destroy() when deleting an inode chain.
      The parent can be ripped out from under the code before it gets both
      parent and chain locked, resulting in an assertion in hammer2_chain_delete().
    
      Properly test the linkage and retry if the parent changes.

Summary of changes:
 sys/vfs/hammer2/hammer2_inode.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ce9db80715b9067468fe066c422d40b20e27cfa


-- 
DragonFly BSD source repository


More information about the Commits mailing list