From: Johann Lombardi Date: Mon, 18 Jan 2010 10:10:33 +0000 (+0100) Subject: b=18690 disable rehash for quota X-Git-Tag: v1_8_2_RC2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3454421b604e782497bcef1d24656b2e3ce2c7ab;p=fs%2Flustre-release.git b=18690 disable rehash for quota quota can uses a key of 0 for root and the rehash code assert on this. Disable rehashing for quota lqs for now. --- diff --git a/lustre/ChangeLog b/lustre/ChangeLog index f7bd94f..b7bce37 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -258,8 +258,8 @@ Details : fix race during quota release on the slave. Severity : enhancement Bugzilla : 18690 Description: smaller hash bucket sizes, cleanups -Details : increase hash table sizes and enabled rehashing for pools, quota - uuid, nid & per-nid stats. +Details : increase hash table sizes and enabled rehashing for pools, uuid, + nid & per-nid stats. Severity : enhancement Bugzilla : 19673 diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index c878dd7..e8d6014 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -1257,8 +1257,8 @@ qctxt_init(struct obd_device *obd, dqacq_handler_t handler) qctxt->lqc_lqs_hash = lustre_hash_init("LQS_HASH", HASH_LQS_CUR_BITS, - HASH_LQS_MAX_BITS, - &lqs_hash_ops, LH_REHASH); + HASH_LQS_CUR_BITS, + &lqs_hash_ops, 0); if (!qctxt->lqc_lqs_hash) CERROR("%s: initialize hash lqs failed\n", obd->obd_name);