NFS: support EIOCBQUEUED return in direct read path
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:30 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:30 +0000 (13:44 -0500)
commit487b83723ed4d4eaafd5109f36560da4f15c6578
tree8c869604c0b934f5b207c89e90aea9977c5d8ade
parent99514f8fdda2beef1ca922b7f9d89c1a2c57fec0
NFS: support EIOCBQUEUED return in direct read path

For async iocb's, the NFS direct read path should return EIOCBQUEUED and
call aio_complete when all the requested reads are finished.  The
synchronous part of the NFS direct read path behaves exactly as it was
before.

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