]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Implements sess->ksmbd_chann_list as xarray
authorDawei Li <set_pte_at@outlook.com>
Mon, 18 Dec 2023 15:33:30 +0000 (00:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:54 +0000 (10:41 +0100)
commitb1caecbf34b8c8260d851ec4efde71f3694460b7
tree33a2f1ad341d95bc8d297fc69789af8a7a040cae
parentd7f088dc279441ace8b5ef70259c089142f89497
ksmbd: Implements sess->ksmbd_chann_list as xarray

[ Upstream commit 1d9c4172110e645b383ff13eee759728d74f1a5d ]

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: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/mgmt/user_session.c
fs/ksmbd/mgmt/user_session.h
fs/ksmbd/smb2pdu.c