summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-03-23 01:42:19 +0000
committerjeff <jeff@FreeBSD.org>2008-03-23 01:42:19 +0000
commit73b6a5597c0960ea6e9c14c579f5923be3e6a3a9 (patch)
treea202aaeae65e705624eb68e7e89cc4c76ebd08fd
parentc184f6ced2d94b18defce564aa19ac904e701381 (diff)
downloadFreeBSD-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
-rw-r--r--sys/kern/vfs_subr.c2
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,
OpenPOWER on IntegriCloud