ksmbd: Implements sess->ksmbd_chann_list as xarray
authorDawei Li <set_pte_at@outlook.com>
Sun, 15 Jan 2023 10:32:04 +0000 (18:32 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 30 Jan 2023 00:10:38 +0000 (18:10 -0600)
commit1d9c4172110e645b383ff13eee759728d74f1a5d
tree7303e15c8148c89d581ba7b344bea0954834db6e
parent6d796c50f84ca79f1722bb131799e5a5710c4700
ksmbd: Implements sess->ksmbd_chann_list as xarray

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>
fs/ksmbd/mgmt/user_session.c
fs/ksmbd/mgmt/user_session.h
fs/ksmbd/smb2pdu.c