char *tmp[] = {cli->cl_target_uuid, obd->obd_uuid };
struct ptlrpc_connection *conn = imp->imp_connection;
struct lustre_handle old_hdl;
- struct ptlrpc_request *request;
+ struct ptlrpc_request *request;
struct obd_export *ldlmexp;
int rc;
imp->imp_handle.cookie = request->rq_repmsg->cookie;
GOTO(out_disc, rc = EALREADY);
}
-
+
CERROR("reconnected to %s@%s after partition\n",
cli->cl_target_uuid, conn->c_remote_uuid);
GOTO(out_disc, rc = EALREADY);
/* It might have committed some after we last spoke, so make sure we
* get rid of them now.
*/
- ptlrpc_free_committed(imp);
-
spin_lock(&imp->imp_lock);
+ ptlrpc_free_committed(imp);
+
CDEBUG(D_HA, "import %p from %s has committed "LPD64"\n",
imp, imp->imp_obd->u.cli.cl_target_uuid, committed);
DEBUG_REQ(D_HA, req, "RETAINED: ");
}
- list_for_each_safe(tmp, pos, &imp->imp_replay_list) {
+ list_for_each_safe(tmp, pos, &imp->imp_replay_list) {
req = list_entry(tmp, struct ptlrpc_request, rq_list);
if (req->rq_transno == imp->imp_max_transno &&
LBUG();
}
}
+
RETURN(rc);
}