From a1891549d31f2ef4333a9084583694a75f90ac39 Mon Sep 17 00:00:00 2001 From: shaver Date: Wed, 19 Nov 2003 18:53:50 +0000 Subject: [PATCH] MDS-side OSCs always ping their OSTs for prompt failure detection. --- lustre/ldlm/ldlm_lib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 1.8.3.1