]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37632d891a55925ac24567f77f2ec9dd3756f051
tree58a9aa8bee2de7e42f81c522115cd10078a6a5ef
parent1e473cde05f7dc4f0c8c9bd760bd59292a27e6d0
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