[PATCH 2/2] smb client: switch disable_work_sync with cancel_work_sync to fix backport
Thomas Lamprecht
t.lamprecht at proxmox.com
Sat Feb 14 15:54:58 UTC 2026
The backport of upstream commit d9dcbbcf9145 ("smb: client: let
smbd_destroy() call disable_work_sync(&info->post_send_credits_work)")
was not adapted to the workqueue helpers available in 6.8, as the
disable_work_sync function was only added for v6.10. Swap it out with
the cancel_work_sync one available in 6.8, while the newer one would
slightly be robuster, this should still fulfill what the backported
fix wants to achieve.
Fixes: 070ee6e1f3fd ("smb: client: let smbd_destroy() call disable_work_sync(&info->post_send_credits_work)")
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
fs/smb/client/smbdirect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c
index 6b5c133c1faa..581e86b7c119 100644
--- a/fs/smb/client/smbdirect.c
+++ b/fs/smb/client/smbdirect.c
@@ -1302,7 +1302,7 @@ void smbd_destroy(struct TCP_Server_Info *server)
}
log_rdma_event(INFO, "cancelling post_send_credits_work\n");
- disable_work_sync(&info->post_send_credits_work);
+ cancel_work_sync(&info->post_send_credits_work);
log_rdma_event(INFO, "destroying qp\n");
ib_drain_qp(sc->ib.qp);
--
2.39.5
More information about the kernel-team
mailing list