Skip to content
Snippets Groups Projects
Commit 91bbf9cb authored by Dawei Li's avatar Dawei Li Committed by Greg Kroah-Hartman
Browse files

ksmbd: Implements sess->ksmbd_chann_list as xarray


[ Upstream commit 1d9c4172 ]

For some ops on channel:
1. lookup_chann_list(), possibly on high frequency.
2. ksmbd_chann_del().

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

Implements sess->ksmbd_chann_list as xarray.

Signed-off-by: default avatarDawei Li <set_pte_at@outlook.com>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Stable-dep-of: f5c779b7 ("ksmbd: fix racy issue from session setup and logoff")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3db734e4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment