From 3454421b604e782497bcef1d24656b2e3ce2c7ab Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Mon, 18 Jan 2010 11:10:33 +0100 Subject: [PATCH] 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. --- lustre/ChangeLog | 4 ++-- lustre/quota/quota_context.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 1.8.3.1