OSDN Git Service

CIFS: Respect reconnect in non-MTU credits calculations
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 16 Jan 2019 19:22:29 +0000 (11:22 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:10:01 +0000 (18:10 -0600)
commit34f4deb7c56c6fdc77a7e414203f0045bb6db32b
treefccaedae956555872001adad932ac8a4a1da99ea
parent335b7b62ffb69d18055f2bb6f3a029263a07c735
CIFS: Respect reconnect in non-MTU credits calculations

Every time after a session reconnect we don't need to account for
credits obtained in previous sessions. Make use of the recently
added cifs_credits structure to properly calculate credits for
non-MTU requests the same way we did for MTU ones.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/smb2pdu.c
fs/cifs/transport.c