mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
ksmbd: increase session and share hash table bits
Increases the number of bits for the hash table from 3 to 12. The thousands of sessions and shares can be connected. So the current 3-bit size can lead to frequent hash collisions. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
0bcc831be5
commit
e28c5bc456
|
|
@ -19,7 +19,7 @@
|
|||
#include "../transport_ipc.h"
|
||||
#include "../misc.h"
|
||||
|
||||
#define SHARE_HASH_BITS 3
|
||||
#define SHARE_HASH_BITS 12
|
||||
static DEFINE_HASHTABLE(shares_table, SHARE_HASH_BITS);
|
||||
static DECLARE_RWSEM(shares_table_lock);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
static DEFINE_IDA(session_ida);
|
||||
|
||||
#define SESSION_HASH_BITS 3
|
||||
#define SESSION_HASH_BITS 12
|
||||
static DEFINE_HASHTABLE(sessions_table, SESSION_HASH_BITS);
|
||||
static DECLARE_RWSEM(sessions_table_lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user