git: hammer2 - Fix "hammer2_chain_getparent: no parent" assertion
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Oct 29 10:52:01 PDT 2017
commit d0dd92f61fc6d39c5d9e89cf8d72b2994961cdd4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Oct 29 10:48:15 2017 -0700
hammer2 - Fix "hammer2_chain_getparent: no parent" assertion
* Inodes are placed on the pmp->sideq when a flush action is required
but no vnode association exists. This is most typically done when
a vnode is reclaimed. The sideq code also handles destroying an
unlinked inode on last-close.
* It is possible for an already-deleted inode (not just unlinked, but
also deleted from the topology) to wind up on the sideq list, resulting
in the above assertion.
* Fix the assertion by handling the case. Just flush the inode normally
instead of trying to re-delete it. The related in-memory topology will
be destroyed automatically.
Summary of changes:
sys/vfs/hammer2/hammer2_inode.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0dd92f61fc6d39c5d9e89cf8d72b2994961cdd4
--
DragonFly BSD source repository
More information about the Commits
mailing list