projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ksmbd: fix race condition between session lookup and expire
[platform/kernel/linux-rpi.git]
/
fs
/
smb
/
server
/
connection.h
diff --git
a/fs/smb/server/connection.h
b/fs/smb/server/connection.h
index
ab2583f
..
3c00524
100644
(file)
--- a/
fs/smb/server/connection.h
+++ b/
fs/smb/server/connection.h
@@
-50,6
+50,7
@@
struct ksmbd_conn {
struct nls_table *local_nls;
struct unicode_map *um;
struct list_head conns_list;
+ struct rw_semaphore session_lock;
/* smb session 1 per user */
struct xarray sessions;
unsigned long last_active;