]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/nfs/direct.c
NFS: support EIOCBQUEUED return in direct write path
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:33 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:33 +0000 (13:44 -0500)
commit9eafa8cc521b489f205bf7b0634c99e34e046606
tree5afa96efb2dcd0a211402603977b2ce0428a9741
parentc89f2ee5f9223b864725f7344f24a037dfa76568
NFS: support EIOCBQUEUED return in direct write path

For async iocb's, the NFS direct write path now returns EIOCBQUEUED,
and calls aio_complete when all the requested writes are finished.  The
synchronous part of the NFS direct write path behaves exactly as it
was before.

Shared mapped NFS files will have some coherency difficulties when
accessed concurrently with aio+dio.  Will need to explore how this
is handled in the local file system case.

Test plan:
aio-stress with "-O". OraSim.

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