smb: client: use disable[_delayed]_work_sync in smbdirect.c
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Aug 2025 10:58:21 +0000 (12:58 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 18 Sep 2025 01:33:44 +0000 (20:33 -0500)
commitbac28f604c7699727b2fecf14c3a54668bbe458e
tree6b11889458b486d2f15e637a0447b1fc46ff8188
parent93ed9a2951308db374cba4562533dde97bac70d3
smb: client: use disable[_delayed]_work_sync in smbdirect.c

This makes it safer during the disconnect and avoids
requeueing.

It's ok to call disable[delayed_]work[_sync]() more than once.

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
Fixes: 050b8c374019 ("smbd: Make upper layer decide when to destroy the transport")
Fixes: f198186aa9bb ("CIFS: SMBD: Establish SMB Direct connection")
Fixes: c7398583340a ("CIFS: SMBD: Implement RDMA memory registration")
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smbdirect.c