diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-23 14:18:00 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 17:25:23 +0200 |
commit | 28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977 (patch) | |
tree | 25f091cdd90fa160d0a10ce2798c7960bdfd051c /fs/cifs/cifsproto.h | |
parent | CIFS: Make transport routines work with SMB2 (diff) | |
download | linux-28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977.tar.xz linux-28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977.zip |
CIFS: Add SMB2 credits support
For SMB2 protocol we can add more than one credit for one received
request: it depends on CreditRequest field in SMB2 response header.
Also we divide all requests by type: echoes, oplocks and others.
Each type uses its own slot pull.
Reviewed-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 88967d0885bf..3b4d41f9ceeb 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -91,6 +91,7 @@ extern int SendReceiveBlockingLock(const unsigned int xid, struct smb_hdr *in_buf , struct smb_hdr *out_buf, int *bytes_returned); +extern int cifs_reconnect(struct TCP_Server_Info *server); extern int checkSMB(char *buf, unsigned int length); extern bool is_valid_oplock_break(char *, struct TCP_Server_Info *); extern bool backup_cred(struct cifs_sb_info *); |