]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: smbd: introduce read/write credits for RDMA read/write
authorHyunchul Lee <hyc.lee@gmail.com>
Fri, 29 Apr 2022 23:30:26 +0000 (08:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:42:30 +0000 (14:42 +0200)
commit137a06a182e5ca34b983bd383fe2441eaa02af51
treece3152937221de1c7546fd1175cdfb634d3fcb89
parentec8ba1e52f63b1cb98639af07b2f48a5691ee064
ksmbd: smbd: introduce read/write credits for RDMA read/write

[ Upstream commit ddbdc861e37c168cf2fb8a7b7477f5d18b4daf76 ]

SMB2_READ/SMB2_WRITE request has to be granted the number
of rw credits, the pages the request wants to transfer
/ the maximum pages which can be registered with one
MR to read and write a file.
And allocate enough RDMA resources for the maximum
number of rw credits allowed by ksmbd.

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