NFS: create common routine for waiting for direct I/O to complete
authorChuck Lever <cel@netapp.com>
Mon, 20 Mar 2006 18:44:31 +0000 (13:44 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 20 Mar 2006 18:44:31 +0000 (13:44 -0500)
commitbc0fb201b34b12e2d16e8cbd5bb078c1db936304
tree58a9aa8bee2de7e42f81c522115cd10078a6a5ef
parent487b83723ed4d4eaafd5109f36560da4f15c6578
NFS: create common routine for waiting for direct I/O to complete

We're about to add asynchrony to the NFS direct write path.  Begin by
abstracting out the common pieces in the read path.

The first piece is nfs_direct_read_wait, which works the same whether the
process is waiting for a read or a write.

Test plan:
Compile kernel with CONFIG_NFS and CONFIG_NFS_DIRECTIO enabled.

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