Skip to content

Commit f7f8925

Browse files
metze-sambasmfrench
authored andcommitted
smb: server: use disable_work_sync in transport_rdma.c
This makes it safer during the disconnect and avoids requeueing. It's ok to call disable_work[_sync]() more than once. Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Fixes: 0626e66 ("cifsd: add server handler for central processing and tranport layers") Signed-off-by: Stefan Metzmacher <metze@samba.org> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 1cde0a7 commit f7f8925

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/smb/server/transport_rdma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ static void free_transport(struct smb_direct_transport *t)
399399
wait_event(t->wait_send_pending,
400400
atomic_read(&t->send_pending) == 0);
401401

402-
cancel_work_sync(&t->disconnect_work);
403-
cancel_work_sync(&t->post_recv_credits_work);
404-
cancel_work_sync(&t->send_immediate_work);
402+
disable_work_sync(&t->disconnect_work);
403+
disable_work_sync(&t->post_recv_credits_work);
404+
disable_work_sync(&t->send_immediate_work);
405405

406406
if (t->qp) {
407407
ib_drain_qp(t->qp);

0 commit comments

Comments
 (0)