Add comment to clarify a commit rpc optimization already being performed.
This commit is contained in:
parent
4cc712004c
commit
8fdd2461b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51475
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user