]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Fix adjustment of credits for MTU requests
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 19 Dec 2018 22:49:09 +0000 (22:49 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 10 Jan 2019 20:32:32 +0000 (14:32 -0600)
commit129033a03c0c56743d5b8c0df0a74f6e4d68b090
tree9e6c80251f436ce0d22dae4b113e26e268003597
parent826d526237b3557a9279ff773b9502f706a9730e
CIFS: Fix adjustment of credits for MTU requests

Currently for MTU requests we allocate maximum possible credits
in advance and then adjust them according to the request size.
While we were adjusting the number of credits belonging to the
server, we were skipping adjustment of credits belonging to the
request. This patch fixes it by setting request credits to
CreditCharge field value of SMB2 packet header.

Also ask 1 credit more for async read and write operations to
increase parallelism and match the behavior of other operations.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
fs/cifs/smb2pdu.c