Whamcloud - gitweb
simplify disconnecting client export and avoid sending requests after client is
[fs/lustre-release.git] / lustre / obdfilter / filter.c
index f4b9cbd..5016618 100644 (file)
@@ -3058,15 +3058,10 @@ static int filter_disconnect(struct obd_export *exp)
 
         lquota_clearinfo(filter_quota_interface_ref, exp, exp->exp_obd);
 
-        /* Disconnect early so that clients can't keep using export */
-        rc = class_disconnect(exp);
-        if (exp->exp_obd->obd_namespace != NULL)
-                ldlm_cancel_locks_for_export(exp);
+        rc = server_disconnect_export(exp);
 
         fsfilt_sync(obd, obd->u.obt.obt_sb);
 
-        lprocfs_exp_cleanup(exp);
-
         class_export_put(exp);
         RETURN(rc);
 }