]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: smbd: relax the count of sges required
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 18 Dec 2023 15:33:01 +0000 (00:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:51 +0000 (10:41 +0100)
commitff403dbe43a1eda2e759cb675928d68dbb014b59
tree3607022e19009f7824bd50971ad7681e78b40ca9
parent9d609b52f9526e3cf3a9a67f707256e3a41ea145
ksmbd: smbd: relax the count of sges required

[ Upstream commit 621433b7e25d6d42e5f75bd8c4a62d6c7251511b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/transport_rdma.c