summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-05-13 19:41:32 +0000
committerdfr <dfr@FreeBSD.org>1997-05-13 19:41:32 +0000
commita35c44886523894dfc33a2b4237a667135c3ce00 (patch)
tree1e11e32394baa294363db6e32d2b59f900f3f33a /sys/nfs
parent837dcb79a733a479c8b0d9e4f8736004e8166220 (diff)
downloadFreeBSD-src-a35c44886523894dfc33a2b4237a667135c3ce00.zip
FreeBSD-src-a35c44886523894dfc33a2b4237a667135c3ce00.tar.gz
Check the B_CLUSTER flag when choosing whether to use unstable or filesync
writes. PR: kern/3438 Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 5ecf4e1..bc550fc 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
- * $Id: nfs_bio.c,v 1.35 1997/04/18 14:11:59 dfr Exp $
+ * $Id: nfs_bio.c,v 1.36 1997/04/19 14:28:36 dfr Exp $
*/
@@ -958,7 +958,7 @@ nfs_doio(bp, cr, p)
io.iov_base = (char *)bp->b_data + bp->b_dirtyoff;
uiop->uio_rw = UIO_WRITE;
nfsstats.write_bios++;
- if ((bp->b_flags & (B_ASYNC | B_NEEDCOMMIT | B_NOCACHE)) == B_ASYNC)
+ if ((bp->b_flags & (B_ASYNC | B_NEEDCOMMIT | B_NOCACHE | B_CLUSTER)) == B_ASYNC)
iomode = NFSV3WRITE_UNSTABLE;
else
iomode = NFSV3WRITE_FILESYNC;
OpenPOWER on IntegriCloud