Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop is

always shoould entered with mutex locked.
This commit is contained in:
Alexander Kabaev 2003-10-30 16:22:51 +00:00
parent cc3f6cb9fd
commit 0823d2996c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121745

View File

@ -899,6 +899,7 @@ vfs_stdsync(mp, waitfor, cred, td)
mtx_unlock(&mntvnode_mtx);
if ((error = vget(vp, lockreq, td)) != 0) {
mtx_lock(&mntvnode_mtx);
if (error == ENOENT)
goto loop;
continue;