cifs: convert cifs_readpages to use async reads
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:30:16 +0000 (15:30 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:30:16 +0000 (15:30 -0400)
commit690c5e3163502f229e5b5d455e5212e28c20cd6d
treefd19fcb81d852b7cb8069b11d8aea1a70e0aac30
parente28bc5b1fdbd6e850488234d6072e6b66fc46146
cifs: convert cifs_readpages to use async reads

Now that we have code in place to do asynchronous reads, convert
cifs_readpages to use it. The new cifs_readpages walks the page_list
that gets passed in, locks and adds the pages to the pagecache and
sets up cifs_readdata to handle the reads.

The rest is handled by the cifs_async_readv infrastructure.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/file.c