hammer2 - Fix rename race
commit253d9bc480c460d6ddec4a3833f61a4036c1eaa0
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 2 Dec 2017 09:02:59 +0000 (2 01:02 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 2 Dec 2017 19:08:38 +0000 (2 11:08 -0800)
tree4e4f59af044dbab47ebde89334eb18af95da6abd
parent2242e9c2ce178e823c7b625aa7dab4add515253d
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
sys/vfs/hammer2/hammer2_vnops.c