Skip to content

Commit 8bfe3fd

Browse files
metze-sambasmfrench
authored andcommitted
smb: client: remove pointless sc->send_io.pending handling in smbd_post_send_iter()
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>
1 parent 6858531 commit 8bfe3fd

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/smb/client/smbdirect.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,11 +1274,6 @@ static int smbd_post_send_iter(struct smbdirect_socket *sc,
12741274
if (!rc)
12751275
return 0;
12761276

1277-
if (atomic_dec_and_test(&sc->send_io.pending.count))
1278-
wake_up(&sc->send_io.pending.zero_wait_queue);
1279-
1280-
wake_up(&sc->send_io.pending.dec_wait_queue);
1281-
12821277
err_dma:
12831278
for (i = 0; i < request->num_sge; i++)
12841279
if (request->sge[i].addr)

0 commit comments

Comments
 (0)