summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2015-12-07 01:51:39 +0000
committerbeck <beck@openbsd.org>2015-12-07 01:51:39 +0000
commitff4f572fa65d7d4e1186e30b1c14a8c475a6173e (patch)
treee1aec8d26dbfbc02fd8f0e894a0ff4f021afaf0f
parentOnly declare buf_daemon() once (diff)
downloadwireguard-openbsd-ff4f572fa65d7d4e1186e30b1c14a8c475a6173e.tar.xz
wireguard-openbsd-ff4f572fa65d7d4e1186e30b1c14a8c475a6173e.zip
NFS can pass a buffer cache buffer straight to VOP_STRATEGY here, so dma_flip is
needed. Found by henning@ - thanks! ok deraadt@
-rw-r--r--sys/nfs/nfs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 9f563810f97..be056a9e5a9 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.164 2015/05/03 02:02:15 guenther Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.165 2015/12/07 01:51:39 beck Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -3102,6 +3102,7 @@ nfs_writebp(struct buf *bp, int force)
nfs_clearcommit(bp->b_vp->v_mount);
}
if (retv) {
+ buf_flip_dma(bp);
if (force)
bp->b_flags |= B_WRITEINPROG;
VOP_STRATEGY(bp);