X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fimport.c;h=80ad967c784a567938bbef869d272803dccca7c0;hp=f7e200dbad92df54915c8891926558dae3b5dc87;hb=cd8dc58c76b43c5dfa9ec238cc3f4264e9f5f89f;hpb=9813961151e8f6e19eac9cf5a8db676f7aa70f50 diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c index f7e200d..80ad967 100644 --- a/lustre/ptlrpc/import.c +++ b/lustre/ptlrpc/import.c @@ -868,6 +868,12 @@ static int ptlrpc_connect_interpret(const struct lu_env *env, imp->imp_obd->obd_self_export->exp_connect_data = *ocd; class_export_put(exp); + /* The net statistics after (re-)connect is not valid anymore, + * because may reflect other routing, etc. */ + at_init(&imp->imp_at.iat_net_latency, 0, 0); + ptlrpc_at_adj_net_latency(request, + lustre_msg_get_service_time(request->rq_repmsg)); + obd_import_event(imp->imp_obd, imp, IMP_EVENT_OCD); if (aa->pcaa_initial_connect) {