diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-11 14:45:28 +0400 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 21:55:14 +0400 |
commit | c95b8eeda3efcb419ea0a3f864cf99e32c038c21 (patch) | |
tree | 94e8ee13177c79648a8ffd616807b0eeb85aa2ff /fs/cifs/smb2transport.c | |
parent | 45740847e2362f36410e8118ac685876be473039 (diff) | |
download | op-kernel-dev-c95b8eeda3efcb419ea0a3f864cf99e32c038c21.zip op-kernel-dev-c95b8eeda3efcb419ea0a3f864cf99e32c038c21.tar.gz |
CIFS: Add SMB2 support for async requests
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2transport.c')
-rw-r--r-- | fs/cifs/smb2transport.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c index b4b6b9a..31f5d42 100644 --- a/fs/cifs/smb2transport.c +++ b/fs/cifs/smb2transport.c @@ -148,4 +148,25 @@ smb2_setup_request(struct cifs_ses *ses, struct kvec *iov, return rc; } -/* BB add missing functions here */ +int +smb2_setup_async_request(struct TCP_Server_Info *server, struct kvec *iov, + unsigned int nvec, struct mid_q_entry **ret_mid) +{ + int rc = 0; + struct smb2_hdr *hdr = (struct smb2_hdr *)iov[0].iov_base; + struct mid_q_entry *mid; + + smb2_seq_num_into_buf(server, hdr); + + mid = smb2_mid_entry_alloc(hdr, server); + if (mid == NULL) + return -ENOMEM; + + /* rc = smb2_sign_smb2(iov, nvec, server); + if (rc) { + DeleteMidQEntry(mid); + return rc; + }*/ + *ret_mid = mid; + return rc; +} |