]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Count SMB3 credits for malformed pending responses
authorPavel Shilovsky <pshilov@microsoft.com>
Thu, 24 Jan 2019 01:11:16 +0000 (17:11 -0800)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:06:39 +0000 (20:06 -0600)
commitee7a20f48d2ab1d0234f03d5ad9c38baef900166
tree0ae3f1ec760bb32727b86b97a8fcdc1f25190e1d
parentb78ed11e0b29aedfb57e52ca7eed1ded3c96c1f9
CIFS: Count SMB3 credits for malformed pending responses

Even if a response is malformed, we should count credits
granted by the server to avoid miscalculations and unnecessary
reconnects due to client or server bugs. If the response has
been received partially, the session will be reconnected anyway
on the next iteration of the demultiplex thread, so counting
credits for such cases shouldn't break things.

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/connect.c
fs/cifs/smb2ops.c