]> git.baikalelectronics.ru Git - kernel.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)
committerSteve French <stfrench@microsoft.com>
Sat, 21 May 2022 20:01:28 +0000 (15:01 -0500)
commit13408d41310e58629d18f261d0d71289c6b6d0f7
treef85fa3591f9f63310d39b7e776cb415cfe746a86
parentf3cedd4524744f0841df99d450cd37b6f2c5f36c
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