Skip to content
Snippets Groups Projects
Commit 965f3315 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch b1_6

b=16907
o=Brian Behlendorf <behlendorf1@llnl.gov>
i=yury.umanets
i=robert.read

Description: Prevent import from entering FULL state when server in recovery
parent c7a511b0
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,10 @@ tbd Sun Microsystems, Inc.
* Output of lfs quota has been made less detailed by default,
old (verbose) output can be obtained by using -v option.
Severity : normal
Bugzilla : 16907
Description: Prevent import from entering FULL state when server in recovery
Severity : major
Bugzilla : 16750
Description: service mount cannot take device name with ":"
......
......@@ -676,7 +676,17 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request,
imp->imp_remote_handle =
*lustre_msg_get_handle(request->rq_repmsg);
IMPORT_SET_STATE(imp, LUSTRE_IMP_FULL);
/* Initial connects are allowed for clients with non-random
* uuids when servers are in recovery. Simply signal the
* servers replay is complete and wait in REPLAY_WAIT. */
if (msg_flags & MSG_CONNECT_RECOVERING) {
CDEBUG(D_HA, "connect to %s during recovery\n",
obd2cli_tgt(imp->imp_obd));
IMPORT_SET_STATE(imp, LUSTRE_IMP_REPLAY_LOCKS);
} else {
IMPORT_SET_STATE(imp, LUSTRE_IMP_FULL);
}
spin_lock(&imp->imp_lock);
if (imp->imp_invalid) {
spin_unlock(&imp->imp_lock);
......
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