]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Implements sess->rpc_handle_list as xarray
authorDawei Li <set_pte_at@outlook.com>
Sun, 31 Dec 2023 07:12:25 +0000 (16:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:28 +0000 (15:18 +0100)
commit052b41ef2abe274f068e892aee81406f11bd1f3a
treeb0f58baeacfd2b5769ab05f6078c4e3e7b47ab69
parent264547e13f80437a05f4f28fb636898750a3c644
ksmbd: Implements sess->rpc_handle_list as xarray

[ Upstream commit b685757c7b08d5073046fb379be965fd6c06aafc ]

For some ops on rpc handle:
1. ksmbd_session_rpc_method(), possibly on high frequency.
2. ksmbd_session_rpc_close().

id is used as indexing key to lookup channel, in that case,
linear search based on list may suffer a bit for performance.

Implements sess->rpc_handle_list as xarray.

Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/mgmt/user_session.c
fs/smb/server/mgmt/user_session.h