Add comment to clarify a commit rpc optimization already being performed.

This commit is contained in:
Matthew Dillon 1999-09-20 19:10:28 +00:00
parent 4cc712004c
commit 8fdd2461b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51475
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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