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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67439
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);
}