- Pass BO_MTX(bo) to lockmgr in vtruncbuf, we don't own the vnode
interlock here anymore. Reported by: kris
This commit is contained in:
parent
4ffca444a5
commit
f6a8cecfc6
@ -1297,7 +1297,7 @@ vtruncbuf(struct vnode *vp, struct ucred *cred, struct thread *td,
|
||||
*/
|
||||
if (BUF_LOCK(bp,
|
||||
LK_EXCLUSIVE | LK_SLEEPFAIL | LK_INTERLOCK,
|
||||
VI_MTX(vp)) == ENOLCK) {
|
||||
BO_MTX(bo)) == ENOLCK) {
|
||||
goto restart;
|
||||
}
|
||||
VNASSERT((bp->b_flags & B_DELWRI), vp,
|
||||
|
Loading…
Reference in New Issue
Block a user