cifs: add a callback function to receive the rest of the frame
authorJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:49 +0000 (15:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Oct 2011 19:29:49 +0000 (15:29 -0400)
commit44d22d846fdc7c3e688fc1ff5ae6d06d08bb5656
treea7c55381c4eee74c2be9a4dc0728f0a927367d04
parente9097ab48978c89b9c0926e2ae5d49bf6ea91b18
cifs: add a callback function to receive the rest of the frame

In order to handle larger SMBs for readpages and other calls, we want
to be able to read into a preallocated set of buffers. Rather than
changing all of the existing code to preallocate buffers however, we
instead add a receive callback function to the MID.

cifsd will call this function once the mid_q_entry has been identified
in order to receive the rest of the SMB. If the mid can't be identified
or the receive pointer is unset, then the standard 3rd phase receive
function will be called.

Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/transport.c