diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-11 06:45:28 -0400 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-07-24 13:55:14 -0400 |
commit | c95b8eeda3efcb419ea0a3f864cf99e32c038c21 (patch) | |
tree | 94e8ee13177c79648a8ffd616807b0eeb85aa2ff /fs/cifs/smb2transport.c | |
parent | 45740847e2362f36410e8118ac685876be473039 (diff) |
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 b4b6b9a6c0f..31f5d420b3e 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, | |||
148 | return rc; | 148 | return rc; |
149 | } | 149 | } |
150 | 150 | ||
151 | /* BB add missing functions here */ | 151 | int |
152 | smb2_setup_async_request(struct TCP_Server_Info *server, struct kvec *iov, | ||
153 | unsigned int nvec, struct mid_q_entry **ret_mid) | ||
154 | { | ||
155 | int rc = 0; | ||
156 | struct smb2_hdr *hdr = (struct smb2_hdr *)iov[0].iov_base; | ||
157 | struct mid_q_entry *mid; | ||
158 | |||
159 | smb2_seq_num_into_buf(server, hdr); | ||
160 | |||
161 | mid = smb2_mid_entry_alloc(hdr, server); | ||
162 | if (mid == NULL) | ||
163 | return -ENOMEM; | ||
164 | |||
165 | /* rc = smb2_sign_smb2(iov, nvec, server); | ||
166 | if (rc) { | ||
167 | DeleteMidQEntry(mid); | ||
168 | return rc; | ||
169 | }*/ | ||
170 | *ret_mid = mid; | ||
171 | return rc; | ||
172 | } | ||