]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: smbd: relax the count of sges required
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 26 May 2022 23:50:54 +0000 (08:50 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 28 May 2022 02:31:20 +0000 (21:31 -0500)
commitaf26a6ce6a0c34077fe224ff96499ee3ec112769
tree6d9623233bab68ad2d6a16a6187eb88ba3e93d62
parentb1e1b2f784d1ca78e50da4175377fa02026e4c9c
ksmbd: smbd: relax the count of sges required

Remove the condition that the count of sges
must be greater than or equal to
SMB_DIRECT_MAX_SEND_SGES(8).
Because ksmbd needs sges only for SMB direct
header, SMB2 transform header, SMB2 response,
and optional payload.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/transport_rdma.c