Relock mntvnode_mtx if vget fails in vfs_stdsync. The loop is
always shoould entered with mutex locked.
This commit is contained in:
parent
cc3f6cb9fd
commit
0823d2996c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user