Whamcloud - gitweb
b=23924 LBUG: ASSERTION(hs == exp->exp_lock_hash) failed
authorLiuYing <emoly.liu@oracle.com>
Fri, 22 Oct 2010 09:29:37 +0000 (17:29 +0800)
committerVitaly Fertman <vitaly.fertman@sun.com>
Tue, 2 Nov 2010 12:13:05 +0000 (15:13 +0300)
fix the wrong assertion in lprocfs_exp_print_hash()

i=andreas
i=eric.mei

lustre/obdclass/lprocfs_status.c

index 87e4277..6926153 100644 (file)
@@ -1718,13 +1718,15 @@ int lprocfs_exp_print_hash(cfs_hash_t *hs, cfs_hash_bd_t *bd,
         struct exp_uuid_cb_data *data = cb_data;
         struct obd_export       *exp = cfs_hash_object(hs, hnode);
 
         struct exp_uuid_cb_data *data = cb_data;
         struct obd_export       *exp = cfs_hash_object(hs, hnode);
 
-        LASSERT(hs == exp->exp_lock_hash);
-        if (!*data->len) {
-                *data->len += cfs_hash_debug_header(data->page,
-                                                    data->count);
+        if (exp->exp_lock_hash != NULL) {
+                if (!*data->len) {
+                        *data->len += cfs_hash_debug_header(data->page,
+                                                            data->count);
+                }
+                *data->len += cfs_hash_debug_str(hs, data->page + *data->len,
+                                                 data->count);
         }
         }
-        *data->len += cfs_hash_debug_str(hs, data->page + *data->len,
-                                         data->count);
+
         return 0;
 }
 
         return 0;
 }