- 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:
Jeff Roberson 2008-03-23 01:42:19 +00:00
parent 4ffca444a5
commit f6a8cecfc6

View File

@ -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,