Branch HEAD
b=15139
i=rread
i=tappro
rc = class_disconnect(exp);
ldlm_cancel_locks_for_export(exp);
+ lprocfs_exp_cleanup(exp);
+
/* complete all outstanding replies */
spin_lock(&exp->exp_lock);
while (!list_empty(&exp->exp_outstanding_replies)) {
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);
fsfilt_sync(obd, obd->u.obt.obt_sb);
+ lprocfs_exp_cleanup(exp);
+
/* flush any remaining cancel messages out to the target */
filter_sync_llogs(obd, exp);
class_export_put(exp);