FAILED: Patch "smb: client: remove pointless sc->recv_io.credits.count rollback" failed to apply to 5.10-stable tree
Subsystems (4)
Sasha Levin
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 6858531e5e8d68828eec349989cefce3f45a487f Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <[email protected]>
Date: Thu, 22 Jan 2026 18:16:51 +0100
Subject: [PATCH] smb: client: remove pointless sc->recv_io.credits.count
rollback
We either reach this code path before we callnew_credits = manage_credits_prior_sending(sc),
which means new_credits is still 0
or the connection is already broken assmbd_post_send() already calledsmbd_disconnect_rdma_connection().
This will also simplify further changes.
--- fs/smb/client/smbdirect.c | 3 --- 1 file changed, 3 deletions(-)
fs/smb/client/smbdirect.c +0 -3
@@ -1288,9 +1288,6 @@ static int smbd_post_send_iter(struct smbdirect_socket *sc, DMA_TO_DEVICE);mempool_free (request, sc->send_io.mem.pool); -/* roll back the granted receive credits */ -atomic_sub (new_credits, &sc->recv_io.credits.count); - err_alloc:atomic_inc (&sc->send_io.credits.count);wake_up (&sc->send_io.credits.wait_queue);
Signature · 1 line
2.51.0