NFS: make direct write path generate write requests concurrently
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:32 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:32 +0000 (13:44 -0500)
commit462d5b3296b56289efec426499a83faad4c08d9e
treeeb4f9a0418e1190958603360cf9bcea0cbb67727
parent63ab46abc70b01cb0711301f5ddb08c1c0bb9b1c
NFS: make direct write path generate write requests concurrently

Duplicate infrastructure from direct read path that will allow write
path to generate multiple write requests concurrently.  This will
enable us to add support for aio in this path.

Temporarily we will lose the ability to do UNSTABLE writes followed by
a COMMIT in the direct write path.  However, all applications I am
aware of that use NFS O_DIRECT currently write in relatively small
chunks, so this should not be inconvenient in any way.

Test plan:
Millions of fsx-odirect ops. OraSim.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c
fs/nfs/write.c
include/linux/nfs_fs.h