Whamcloud - gitweb
avoid ASSERTION(client_stat->nid_exp_ref_count == 0) failed
authorshadow <shadow>
Wed, 13 Aug 2008 07:11:59 +0000 (07:11 +0000)
committershadow <shadow>
Wed, 13 Aug 2008 07:11:59 +0000 (07:11 +0000)
Branch b1_8_gate
b=15139
i=tappro
i=rread

lustre/obdfilter/filter.c

index b04690d..f0b8530 100644 (file)
@@ -2510,7 +2510,6 @@ static int filter_destroy_export(struct obd_export *exp)
         if (obd_uuid_equals(&exp->exp_client_uuid, &exp->exp_obd->obd_uuid))
                 RETURN(0);
 
-        lprocfs_exp_cleanup(exp);
 
         if (exp->exp_obd->obd_replayable)
                 filter_client_free(exp);
@@ -2546,6 +2545,8 @@ static int filter_disconnect(struct obd_export *exp)
         if (exp->exp_obd->obd_namespace != NULL)
                 ldlm_cancel_locks_for_export(exp);
 
+        lprocfs_exp_cleanup(exp);
+
         /* flush any remaining cancel messages out to the target */
         ctxt = llog_get_context(obd, LLOG_MDS_OST_REPL_CTXT);
         err = llog_sync(ctxt, exp);