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:
Namjae Jeon 2025-08-25 08:27:12 +09:00 committed by Steve French
parent 0bcc831be5
commit e28c5bc456
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);