ksmbd: move credit charge deduction under processing request
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 29 Dec 2021 14:10:03 +0000 (23:10 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 10 Jan 2022 18:44:19 +0000 (12:44 -0600)
commit914d7e5709ac59ded70bea7956d408fe2acd7c3c
treede81a2369f17f36589ebfbca0a1af473d768e362
parent004443b3f6d722b455cf963ed7c3edd7f4772405
ksmbd: move credit charge deduction under processing request

Moves the credit charge deduction from total_credits under the processing
a request. When repeating smb2 lock request and other command request,
there will be a problem that ->total_credits does not decrease.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2misc.c
fs/ksmbd/smb2pdu.c