]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ksmbd: improve credits management
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 7 Oct 2021 07:26:58 +0000 (16:26 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 14 Oct 2021 04:37:19 +0000 (23:37 -0500)
commitbf8acc9e10e21c28452dfa067a7d31e6067104b1
treee1b7e8d3fdd4a7382f85277c7ae354bce1f5689a
parentf7db8fd03a4bc5baf70ccf8978fe17cb54368b97
ksmbd: improve credits management

* Requests except READ, WRITE, IOCTL, INFO, QUERY
DIRECOTRY, CANCEL must consume one credit.
* If client's granted credits are insufficient,
refuse to handle requests.
* Windows server 2016 or later grant up to 8192
credits to clients at once.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/connection.c
fs/ksmbd/smb2misc.c
fs/ksmbd/smb2pdu.c