]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: remove pointless sc->recv_io.credits.count rollback
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Jan 2026 17:16:51 +0000 (18:16 +0100)
committerSteve French <stfrench@microsoft.com>
Sun, 8 Feb 2026 23:12:58 +0000 (17:12 -0600)
commit6858531e5e8d68828eec349989cefce3f45a487f
tree12997f301d5271ac4a2d85112add72a2c370d0ac
parentbf1656e12a9db2add716c7fb57b56967f69599fa
smb: client: remove pointless sc->recv_io.credits.count rollback

We either reach this code path before we call
new_credits = manage_credits_prior_sending(sc),
which means new_credits is still 0
or the connection is already broken as
smbd_post_send() already called
smbd_disconnect_rdma_connection().

This will also simplify further changes.

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