Pure nfs client performance using odirect.
authorArun Bharadwaj <arun@linux.vnet.ibm.com>
Thu, 18 Nov 2010 10:36:43 +0000 (10:36 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 22 Nov 2010 18:24:42 +0000 (13:24 -0500)
commitb47d19de2c714020ba8f5545a6e7d4968f37eb45
tree546161934b37b1dd4901f2752387fee6542a224a
parent5fc43978a79e8021c189660ab63249fd29c5fb32
Pure nfs client performance using odirect.

When an application opens a file with O_DIRECT flag, if the size of
the data that is written is equal to wsize, the client sends a
WRITE RPC with stable flag set to UNSTABLE followed by a single
COMMIT RPC rather than sending a single WRITE RPC with the stable
flag set to FILE_SYNC. This a bug.

Patch to fix this.

Signed-off-by: Arun R Bharadwaj <arun@linux.vnet.ibm.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c