]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: call smbd_destroy() in the same splace as kernel_sock_shutdown()/sock_re...
authorStefan Metzmacher <metze@samba.org>
Tue, 28 Oct 2025 17:43:46 +0000 (18:43 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 30 Oct 2025 01:13:13 +0000 (20:13 -0500)
commit895ad6f7083b0c9f1902b23b84136298a492cbeb
tree262affab01cbd60c56f08bc68740578caa323945
parentfac56c4651ae95f3f2b468c2cf1884cf0e6d18c1
smb: client: call smbd_destroy() in the same splace as kernel_sock_shutdown()/sock_release()

With commit b0432201a11b ("smb: client: let destroy_mr_list() keep
smbdirect_mr_io memory if registered") the changes from commit
214bab448476 ("cifs: Call MID callback before destroying transport") and
commit 1d2a4f57cebd ("cifs:smbd When reconnecting to server, call
smbd_destroy() after all MIDs have been called") are no longer needed.

And it's better to use the same logic flow, so that
the chance of smbdirect related problems is smaller.

Fixes: 214bab448476 ("cifs: Call MID callback before destroying transport")
Fixes: 1d2a4f57cebd ("cifs:smbd When reconnecting to server, call smbd_destroy() after all MIDs have been called")
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/connect.c