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)
committerSteve French <stfrench@microsoft.com>
Sat, 21 May 2022 20:01:28 +0000 (15:01 -0500)
commitddbdc861e37c168cf2fb8a7b7477f5d18b4daf76
treef85fa3591f9f63310d39b7e776cb415cfe746a86
parent1807abcf8778bcbbf584fe54da9ccbe9029c49bb
ksmbd: smbd: introduce read/write credits for RDMA read/write

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>
fs/ksmbd/transport_rdma.c