]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: convert tree_conns_lock to rw_semaphore
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 9 Feb 2026 12:33:44 +0000 (21:33 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 23:48:53 +0000 (17:48 -0600)
commit31b9028c77dc279d720412013e95b279b1385aed
tree12a5b4c24051a78fd23ad90470880ecf2689d07d
parent0080608706b37c199c3c2c22bfadac9e75b223a4
ksmbd: convert tree_conns_lock to rw_semaphore

Converts tree_conns_lock to an rw_semaphore to allow sleeping while
the lock is held. Additionally, it simplifies the locking logic in
ksmbd_tree_conn_session_logoff() and introduces
__ksmbd_tree_conn_disconnect() to avoid redundant locking.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/mgmt/tree_connect.c
fs/smb/server/mgmt/user_session.c
fs/smb/server/mgmt/user_session.h
fs/smb/server/smb2pdu.c