Skip to content
Snippets Groups Projects
Commit b4927482 authored by alex's avatar alex
Browse files

- declare export non-connected in filter_init_server_data()

parent 671f74df
No related branches found
No related tags found
No related merge requests found
...@@ -719,10 +719,9 @@ int target_handle_connect(struct ptlrpc_request *req) ...@@ -719,10 +719,9 @@ int target_handle_connect(struct ptlrpc_request *req)
/* Tell the client if we're in recovery. */ /* Tell the client if we're in recovery. */
/* If this is the first client, start the recovery timer */ /* If this is the first client, start the recovery timer */
CWARN("%s: connection from %s@%s/%lu %st"LPU64"\n", target->obd_name, cluuid.uuid, CWARN("%s: connection from %s@%s/%lu %st"LPU64"\n", target->obd_name,
ptlrpc_peernid2str(&req->rq_peer, peer_str), *cfp, cluuid.uuid, ptlrpc_peernid2str(&req->rq_peer, peer_str), *cfp,
target->obd_recovering ? "recovering/" : "", target->obd_recovering ? "recovering/" : "", conn_data->transno);
conn_data->transno);
if (target->obd_recovering) { if (target->obd_recovering) {
lustre_msg_add_op_flags(req->rq_repmsg, MSG_CONNECT_RECOVERING); lustre_msg_add_op_flags(req->rq_repmsg, MSG_CONNECT_RECOVERING);
...@@ -1352,7 +1351,9 @@ static int target_recovery_thread(void *arg) ...@@ -1352,7 +1351,9 @@ static int target_recovery_thread(void *arg)
/* If some clients haven't connected in time, evict them */ /* If some clients haven't connected in time, evict them */
if (obd->obd_abort_recovery) { if (obd->obd_abort_recovery) {
int stale; int stale;
CERROR("some clients haven't connect in time, evict them ...\n"); CERROR("some clients haven't connect in time (%d/%d),"
"evict them ...\n", obd->obd_connected_clients,
obd->obd_max_recoverable_clients);
obd->obd_abort_recovery = 0; obd->obd_abort_recovery = 0;
stale = class_disconnect_stale_exports(obd, connect_done, 0); stale = class_disconnect_stale_exports(obd, connect_done, 0);
atomic_sub(stale, &obd->obd_req_replay_clients); atomic_sub(stale, &obd->obd_req_replay_clients);
......
...@@ -500,6 +500,7 @@ static int filter_init_server_data(struct obd_device *obd, struct file * filp) ...@@ -500,6 +500,7 @@ static int filter_init_server_data(struct obd_device *obd, struct file * filp)
spin_lock_init(&fed->fed_lock); spin_lock_init(&fed->fed_lock);
fcd = NULL; fcd = NULL;
exp->exp_connected = 0;
exp->exp_req_replay_needed = 1; exp->exp_req_replay_needed = 1;
exp->exp_lock_replay_needed = 1; exp->exp_lock_replay_needed = 1;
atomic_inc(&obd->obd_req_replay_clients); atomic_inc(&obd->obd_req_replay_clients);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment