smb: server: queue post_recv_credits_work in put_recvmsg() and avoid count_avail_recvmsg
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Aug 2025 16:23:03 +0000 (18:23 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:52 +0000 (18:29 -0500)
commita7eef6144c97bd7031d40ebc6e8fdd038ea3f46f
tree8ce7c915eb81a9bf23d7d9ea7aa2b3a591e5007e
parentd4b86b49093cbe98b68461a1b1af958f1a0ee16d
smb: server: queue post_recv_credits_work in put_recvmsg() and avoid count_avail_recvmsg

This is basically what the client is doing in put_receive_buffer().

It means we don't need complicated work to maintain count_avail_recvmsg.

But we keep the logic to queue post_recv_credits_work if the
peer raises the requested credit_target and put_receive_buffer()
is not called.

Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/transport_rdma.c