imp->imp_obd->obd_name,
imp->imp_target_uuid.uuid,
imp->imp_connection->c_remote_uuid.uuid);
+ ptlrpc_deactivate_timeouts();
IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_DISCON);
spin_unlock_irqrestore(&imp->imp_lock, flags);
obd_import_event(imp->imp_obd, imp, IMP_EVENT_DISCON);
spin_unlock_irqrestore(&imp->imp_lock, flags);
obd_import_event(obd, imp, IMP_EVENT_ACTIVE);
+ ptlrpc_activate_timeouts();
}
void ptlrpc_fail_import(struct obd_import *imp, int generation)
MSG_CONNECT_INITIAL);
imp->imp_replayable = 1;
}
+
+ imp->imp_reqs_replayed = imp->imp_locks_replayed = 0;
ptlrpcd_add_req(request);
rc = 0;
imp->imp_conn_cnt = request->rq_repmsg->conn_cnt;
imp->imp_remote_handle = request->rq_repmsg->handle;
IMPORT_SET_STATE(imp, LUSTRE_IMP_FULL);
+ ptlrpc_pinger_sending_on_import(imp);
GOTO(finish, rc = 0);
}
req->rq_replen = lustre_msg_size(0, NULL);
req->rq_send_state = LUSTRE_IMP_REPLAY_WAIT;
- req->rq_reqmsg->flags |= MSG_LAST_REPLAY;
+ req->rq_reqmsg->flags |= MSG_LOCK_REPLAY_DONE | MSG_REQ_REPLAY_DONE;
req->rq_timeout *= 3;
req->rq_interpret_reply = completed_replay_interpret;
GOTO(out, rc);
IMPORT_SET_STATE(imp, LUSTRE_IMP_FULL);
ptlrpc_activate_import(imp);
- CWARN("%s: connection restored to %s@%s\n",
+ CWARN("%s: connection restored to %s@%s, "
+ "%d/%d req/lock replayed\n",
imp->imp_obd->obd_name,
imp->imp_target_uuid.uuid,
- imp->imp_connection->c_remote_uuid.uuid);
+ imp->imp_connection->c_remote_uuid.uuid,
+ imp->imp_reqs_replayed,
+ imp->imp_locks_replayed);
}
if (imp->imp_state == LUSTRE_IMP_FULL) {