[BUG] : Pure nfs client performance using odirect.
diff mbox

Message ID 20101118103643.GA13235@linux.vnet.ibm.com
State Accepted, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

Arun Bharadwaj Nov. 18, 2010, 10:36 a.m. UTC
None

Patch
diff mbox

Index: linux-2.6.36-rc7/fs/nfs/direct.c
===================================================================
--- linux-2.6.36-rc7.orig/fs/nfs/direct.c	2010-11-18 15:53:15.904972002 +0530
+++ linux-2.6.36-rc7/fs/nfs/direct.c	2010-11-18 15:54:01.184972001 +0530
@@ -867,7 +867,7 @@ 
 		goto out;
 	nfs_alloc_commit_data(dreq);
 
-	if (dreq->commit_data == NULL || count < wsize)
+	if (dreq->commit_data == NULL || count <= wsize)
 		sync = NFS_FILE_SYNC;
 
 	dreq->inode = inode;