NFS: O_DIRECT needs to use a completion
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:43 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:43 +0000 (13:44 -0500)
commitd72b7a6b26b9009b7a05117fe2e04b3a73ae4a5c
treedcdbc9386b19e4976cf156baf35985016c1d28f4
parent6b45d858ed6821dd687efd3b68929de2e4954fec
NFS: O_DIRECT needs to use a completion

Now that we have aio writes, it is possible for dreq->outstanding to be
zero, but for the I/O not to have completed. Convert struct nfs_direct_req
to use a completion to signal when the I/O is done.

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