git: hammer2 - Fix inode destroy panic

Matthew Dillon dillon at
Tue Jun 28 19:00:17 PDT 2016

commit 8ce9db80715b9067468fe066c422d40b20e27cfa
Author: Matthew Dillon <dillon at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list