CIFS: Add SMB2 credits support
authorPavel Shilovsky <pshilovsky@samba.org>
Wed, 23 May 2012 12:18:00 +0000 (16:18 +0400)
committerSteve French <smfrench@gmail.com>
Tue, 24 Jul 2012 15:25:23 +0000 (10:25 -0500)
commit28ea5290d78a7fc87a4b4f7cedcaa662f5b8d977
tree25f091cdd90fa160d0a10ce2798c7960bdfd051c
parent2dc7e1c03316940dec899fa3206a595de000e99b
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>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/smb2ops.c