From: shaver Date: Wed, 19 Nov 2003 18:53:50 +0000 (+0000) Subject: MDS-side OSCs always ping their OSTs for prompt failure detection. X-Git-Tag: v1_7_0_51~2^7~213 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a1891549d31f2ef4333a9084583694a75f90ac39;p=fs%2Flustre-release.git MDS-side OSCs always ping their OSTs for prompt failure detection. --- diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index c642525..6a4b028 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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 */