]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: client: remove pointless sc->send_io.pending handling in smbd_post_send_iter()
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Jan 2026 17:16:52 +0000 (18:16 +0100)
committerSteve French <stfrench@microsoft.com>
Sun, 8 Feb 2026 23:12:58 +0000 (17:12 -0600)
If we reach this 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

index c9fcd35e0c77aac579240e2faaccedf37dfa759a..cfbe8ce0db42201dbc13e00839063033d736a2c8 100644 (file)
@@ -1274,11 +1274,6 @@ wait_credit:
        if (!rc)
                return 0;
 
-       if (atomic_dec_and_test(&sc->send_io.pending.count))
-               wake_up(&sc->send_io.pending.zero_wait_queue);
-
-       wake_up(&sc->send_io.pending.dec_wait_queue);
-
 err_dma:
        for (i = 0; i < request->num_sge; i++)
                if (request->sge[i].addr)