hammer2 - Fix inode destroy panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Jun 2016 01:58:58 +0000 (18:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 29 Jun 2016 01:58:58 +0000 (18:58 -0700)
commit8ce9db80715b9067468fe066c422d40b20e27cfa
treeab673b94c917d03be878faae5797c4b45b414079
parentd9a07a60b1de36c7de6802640a2fc229d62ab31c
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.
sys/vfs/hammer2/hammer2_inode.c