aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/mgmt/user_session.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2022-07-22 10:15:57 +0900
committerSteve French <stfrench@microsoft.com>2022-07-26 23:38:05 -0500
commit8e06b31e348107c5d78e2c90bb7e69388cb97fb6 (patch)
tree374e7f18ad234a149295de41681ba0f28d07034b /fs/ksmbd/mgmt/user_session.h
parente4d3e6b524c0c928f7fc9e03e047885c4951ae60 (diff)
downloadlinux-8e06b31e348107c5d78e2c90bb7e69388cb97fb6.tar.gz
ksmbd: add channel rwlock
Add missing rwlock for channel list in session. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/mgmt/user_session.h')
-rw-r--r--fs/ksmbd/mgmt/user_session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ksmbd/mgmt/user_session.h b/fs/ksmbd/mgmt/user_session.h
index 8b08189be3fc..1ec659f0151b 100644
--- a/fs/ksmbd/mgmt/user_session.h
+++ b/fs/ksmbd/mgmt/user_session.h
@@ -48,6 +48,7 @@ struct ksmbd_session {
char sess_key[CIFS_KEY_SIZE];
struct hlist_node hlist;
+ rwlock_t chann_lock;
struct list_head ksmbd_chann_list;
struct xarray tree_conns;
struct ida tree_conn_ida;