OSDN Git Service

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)
commit621433b7e25d6d42e5f75bd8c4a62d6c7251511b
tree6d9623233bab68ad2d6a16a6187eb88ba3e93d62
parent376b9133826865568167b4091ef92a68c4622b87
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