Whamcloud - gitweb
b=18690 disable rehash for quota v1_8_2_RC2
authorJohann Lombardi <johann@sun.com>
Mon, 18 Jan 2010 10:10:33 +0000 (11:10 +0100)
committerJohann Lombardi <johann@sun.com>
Mon, 18 Jan 2010 10:10:33 +0000 (11:10 +0100)
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
lustre/quota/quota_context.c

index f7bd94f..b7bce37 100644 (file)
@@ -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
index c878dd7..e8d6014 100644 (file)
@@ -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);