diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-23 01:42:19 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-23 01:42:19 +0000 |
commit | 73b6a5597c0960ea6e9c14c579f5923be3e6a3a9 (patch) | |
tree | a202aaeae65e705624eb68e7e89cc4c76ebd08fd /sys | |
parent | c184f6ced2d94b18defce564aa19ac904e701381 (diff) | |
download | FreeBSD-src-73b6a5597c0960ea6e9c14c579f5923be3e6a3a9.zip FreeBSD-src-73b6a5597c0960ea6e9c14c579f5923be3e6a3a9.tar.gz |
- Pass BO_MTX(bo) to lockmgr in vtruncbuf, we don't own the vnode
interlock here anymore.
Reported by: kris
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0fcff5f..7966687 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1297,7 +1297,7 @@ restartsync: */ 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, |