smb: client: queue post_recv_credits_work also if the peer raises the credit target
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Aug 2025 15:53:55 +0000 (17:53 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:49 +0000 (18:29 -0500)
commit02548c477a90481c1fd0d6e7c84b4504ec2fcc12
treed1f338fc82b8096c60eb5360e0ef025a2b5d477e
parentb0aa92a229ab9e6de3839e06f3a8494bce5b1cd2
smb: client: queue post_recv_credits_work also if the peer raises the credit target

This is already handled in the server, but currently it done
in a very complex way there. So we do it much simpler.

Note that put_receive_buffer() will take care of it
in case data_length is 0.

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