freebsd-skq/sys/ufs
Konstantin Belousov 5673e3cb08 The cache_enter(9) function shall not be called for doomed dvp.
Assert this.

In the reported panic, vdestroy() fired the assertion "vp has namecache
for ..", because pseudofs may end up doing cache_enter() with reclaimed
dvp, after dotdot lookup temporary unlocked dvp.
Similar problem exists in ufs_lookup() for "." lookup, when vnode
lock needs to be upgraded.

Verify that dvp is not reclaimed before calling cache_enter().

Reported and tested by:	pho
Reviewed by:	kan
MFC after:	2 weeks
2010-04-20 10:19:27 +00:00
..
ffs ffs_mount: remove redundant assignment of geom consumer to devvp.v_bufobj 2010-04-03 08:25:04 +00:00
ufs The cache_enter(9) function shall not be called for doomed dvp. 2010-04-20 10:19:27 +00:00