diff options
author | 2015-12-07 01:51:39 +0000 | |
---|---|---|
committer | 2015-12-07 01:51:39 +0000 | |
commit | ff4f572fa65d7d4e1186e30b1c14a8c475a6173e (patch) | |
tree | e1aec8d26dbfbc02fd8f0e894a0ff4f021afaf0f | |
parent | Only declare buf_daemon() once (diff) | |
download | wireguard-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.c | 3 |
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); |