diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-23 08:14:34 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 01:32:48 -0400 |
commit | a891f0f895f4a760fdb99636fab05e60597b8224 (patch) | |
tree | 0f911230af82d5b8cbbbbbb423b032ae8f5dc957 /fs/cifs/cifsproto.h | |
parent | 316cf94a910f6f93d43cc574359d163ccae098a3 (diff) |
CIFS: Extend credit mechanism to process request type
Split all requests to echos, oplocks and others - each group uses
its own credit slot. This is indicated by new flags
CIFS_ECHO_OP and CIFS_OBREAK_OP
that are not used now for CIFS. This change is required to support
SMB2 protocol because of different processing of these commands.
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 613320c9a780..b37399491fa3 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h | |||
@@ -71,11 +71,11 @@ extern void DeleteMidQEntry(struct mid_q_entry *midEntry); | |||
71 | extern int cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, | 71 | extern int cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, |
72 | unsigned int nvec, mid_receive_t *receive, | 72 | unsigned int nvec, mid_receive_t *receive, |
73 | mid_callback_t *callback, void *cbdata, | 73 | mid_callback_t *callback, void *cbdata, |
74 | bool ignore_pend); | 74 | const int flags); |
75 | extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *, | 75 | extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *, |
76 | struct smb_hdr * /* input */ , | 76 | struct smb_hdr * /* input */ , |
77 | struct smb_hdr * /* out */ , | 77 | struct smb_hdr * /* out */ , |
78 | int * /* bytes returned */ , const int long_op); | 78 | int * /* bytes returned */ , const int); |
79 | extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, | 79 | extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, |
80 | char *in_buf, int flags); | 80 | char *in_buf, int flags); |
81 | extern int cifs_setup_request(struct cifs_ses *, struct kvec *, unsigned int, | 81 | extern int cifs_setup_request(struct cifs_ses *, struct kvec *, unsigned int, |