- When there are dangling vnodes at unmount print them before we panic.
Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
23b77994f2
commit
ba5eb429e3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user