aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_bio.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-20 19:10:28 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-20 19:10:28 +0000
commit8fdd2461b37effcc320321ed1d89c5406cf8c7d0 (patch)
tree55731ecc6c5e180c9fc81f68bf5ab525b857b94e /sys/nfs/nfs_bio.c
parent4cc712004cbc472b5ff93761b1ecbb724b6f44a1 (diff)
downloadsrc-8fdd2461b37effcc320321ed1d89c5406cf8c7d0.tar.gz
src-8fdd2461b37effcc320321ed1d89c5406cf8c7d0.zip
Add comment to clarify a commit rpc optimization already being performed.
Notes
Notes: svn path=/head/; revision=51475
Diffstat (limited to 'sys/nfs/nfs_bio.c')
-rw-r--r--sys/nfs/nfs_bio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 9adaa140a431..9aa6af50dbe2 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -1393,6 +1393,14 @@ nfs_doio(bp, cr, p)
bp->b_flags |= B_WRITEINPROG;
error = nfs_writerpc(vp, uiop, cr, &iomode, &must_commit);
+
+ /*
+ * When setting B_NEEDCOMMIT also set B_CLUSTEROK to try
+ * to cluster the buffers needing commit. This will allow
+ * the system to submit a single commit rpc for the whole
+ * cluster.
+ */
+
if (!error && iomode == NFSV3WRITE_UNSTABLE) {
bp->b_flags |= B_NEEDCOMMIT;
if (bp->b_dirtyoff == 0