Release and unlock vnode if resource deadlock detected.

This commit is contained in:
Boris Popov 2000-10-22 15:40:22 +00:00
parent b1b494a765
commit 3ae19dd8cd
2 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ nullfs_mount(mp, path, data, ndp, p)
*/
if (lowerrootvp == VTONULL(mp->mnt_vnodecovered)->null_lowervp) {
NULLFSDEBUG("nullfs_mount: multi null mount?\n");
VOP_UNLOCK(lowerrootvp, 0, p);
return (EDEADLK);
}

View File

@ -150,6 +150,7 @@ nullfs_mount(mp, path, data, ndp, p)
*/
if (lowerrootvp == VTONULL(mp->mnt_vnodecovered)->null_lowervp) {
NULLFSDEBUG("nullfs_mount: multi null mount?\n");
VOP_UNLOCK(lowerrootvp, 0, p);
return (EDEADLK);
}