Whamcloud - gitweb
MDS-side OSCs always ping their OSTs for prompt failure detection.
authorshaver <shaver>
Wed, 19 Nov 2003 18:53:50 +0000 (18:53 +0000)
committershaver <shaver>
Wed, 19 Nov 2003 18:53:50 +0000 (18:53 +0000)
lustre/ldlm/ldlm_lib.c

index c642525..6a4b028 100644 (file)
@@ -307,8 +307,10 @@ int client_disconnect_export(struct obd_export *exp, int failover)
         if (cli->cl_conn_count)
                 GOTO(out_no_disconnect, rc = 0);
 
-        if (imp->imp_replayable)
-                ptlrpc_pinger_del_import(imp);
+        /* Some non-replayable imports (MDS's OSCs) are pinged, so just
+         * delete it regardless.  (It's safe to delete an import that was
+         * never added.) */
+        (void)ptlrpc_pinger_del_import(imp);
 
         if (obd->obd_namespace != NULL) {
                 /* obd_no_recov == local only */