- When there are dangling vnodes at unmount print them before we panic.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2006-03-31 23:38:15 +00:00
parent 23b77994f2
commit ba5eb429e3
1 changed files with 6 additions and 1 deletions

View File

@ -533,8 +533,13 @@ vfs_mount_destroy(struct mount *mp, struct thread *td)
}
MNT_IUNLOCK(mp);
mp->mnt_vfc->vfc_refcount--;
if (!TAILQ_EMPTY(&mp->mnt_nvnodelist))
if (!TAILQ_EMPTY(&mp->mnt_nvnodelist)) {
struct vnode *vp;
TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes)
vprint("", vp);
panic("unmount: dangling vnode");
}
MNT_ILOCK(mp);
if (mp->mnt_kern_flag & MNTK_MWAIT)
wakeup(mp);