]> 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>
Mon, 18 Dec 2023 15:32:54 +0000 (00:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:51 +0000 (10:41 +0100)
commitf17ed7b338999d9ba1e0b4d4cfb9c95c19033daf
tree064c07d80fb3b319352534128c972ef4dcc1cc15
parent982fcdec10fffb1a1db129cbdb2375e4ada4e9f4
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/transport_rdma.c