Whamcloud - gitweb
LU-8130 obd: remove limit on client mounts
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 26 Feb 2024 20:15:21 +0000 (13:15 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 3 Mar 2024 10:25:59 +0000 (10:25 +0000)
Using the in-kernel rhashtable instead of cfs_hash_table
for obd->obd_uuid_hash has a side effect of limiting number
of elements in the hash table and thereby limits max number
of Lustre clients by 16384.

The patch raises the limit to 2^31 (rhashtable default).

Fixes: e40b008e88 ("LU-8130 obd: convert obd uuid hash to rhashtable")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I222a6d0d2789ea9d1bb3530b3619d08ec83ebbe5
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54186
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
lustre/obdclass/obd_config.c

index 50af6ae..ec3d385 100644 (file)
@@ -86,7 +86,6 @@ static const struct rhashtable_params uuid_hash_params = {
        .key_offset     = offsetof(struct obd_export, exp_client_uuid),
        .head_offset    = offsetof(struct obd_export, exp_uuid_hash),
        .obj_cmpfn      = uuid_keycmp,
-       .max_size       = MAX_OBD_DEVICES,
        .automatic_shrinking = true,
 };