smb3: fix problem unloading module due to leaked refcount on shutdown
authorSteve French <stfrench@microsoft.com>
Fri, 16 Aug 2024 21:47:39 +0000 (16:47 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Aug 2024 17:36:57 +0000 (12:36 -0500)
commit15179cf2806f91685410e598f82813a7fcf90f6c
tree0a7b022010bd6793946aaa8fd443aa226e6d4472
parente4be320eeca842a3d7648258ee3673f1755a5a59
smb3: fix problem unloading module due to leaked refcount on shutdown

The shutdown ioctl can leak a refcount on the tlink which can
prevent rmmod (unloading the cifs.ko) module from working.

Found while debugging xfstest generic/043

Fixes: 69ca1f57555f ("smb3: add dynamic tracepoints for shutdown ioctl")
Reviewed-by: Meetakshi Setiya <msetiya@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c
fs/smb/client/ioctl.c
fs/smb/client/link.c