Use vput() instead of VOP_UNLOCK()+vrele(). The comment here is out-dated,
we no longer pass thread pointer to VOP_UNLOCK().
This commit is contained in:
parent
0454fe84e4
commit
e15d7a0b4c
@ -894,10 +894,7 @@ vfs_stdsync(mp, waitfor)
|
|||||||
error = VOP_FSYNC(vp, waitfor, td);
|
error = VOP_FSYNC(vp, waitfor, td);
|
||||||
if (error)
|
if (error)
|
||||||
allerror = error;
|
allerror = error;
|
||||||
|
vput(vp);
|
||||||
/* Do not turn this into vput. td is not always curthread. */
|
|
||||||
VOP_UNLOCK(vp, 0);
|
|
||||||
vrele(vp);
|
|
||||||
MNT_ILOCK(mp);
|
MNT_ILOCK(mp);
|
||||||
}
|
}
|
||||||
MNT_IUNLOCK(mp);
|
MNT_IUNLOCK(mp);
|
||||||
|
Loading…
Reference in New Issue
Block a user