From 857e6fd89b3bf8db4d7f0eef66b8411ff78469d7 Mon Sep 17 00:00:00 2001 From: shadow Date: Wed, 13 Aug 2008 07:11:59 +0000 Subject: [PATCH] avoid ASSERTION(client_stat->nid_exp_ref_count == 0) failed Branch b1_8_gate b=15139 i=tappro i=rread --- lustre/obdfilter/filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index b04690d..f0b8530 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -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); -- 1.8.3.1