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