diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-10-19 21:30:07 +0200 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2011-10-19 21:30:07 +0200 |
commit | e28bc5b1fdbd6e850488234d6072e6b66fc46146 (patch) | |
tree | 7d5292bb0389b1153fd11f738fe8644cdfb040d1 /firmware/e100/d102e_ucode.bin.ihex | |
parent | cifs: fix protocol definition for READ_RSP (diff) | |
download | linux-e28bc5b1fdbd6e850488234d6072e6b66fc46146.tar.xz linux-e28bc5b1fdbd6e850488234d6072e6b66fc46146.zip |
cifs: add cifs_async_readv
...which will allow cifs to do an asynchronous read call to the server.
The caller will allocate and set up cifs_readdata for each READ_AND_X
call that should be issued on the wire. The pages passed in are added
to the pagecache, but not placed on the LRU list yet (as we need the
page->lru to keep the pages on the list in the readdata).
When cifsd identifies the mid, it will see that there is a special
receive handler for the call, and use that to receive the rest of the
frame. cifs_readv_receive will then marshal up a kvec array with
kmapped pages from the pagecache, which eliminates one copy of the
data. Once the data is received, the pages are added to the LRU list,
set uptodate, and unlocked.
Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'firmware/e100/d102e_ucode.bin.ihex')
0 files changed, 0 insertions, 0 deletions