Skip to content
Snippets Groups Projects
Commit 12fa816b authored by Lai Siyao's avatar Lai Siyao
Browse files

b=11315

i=adilger

unmatched spin_lock/unlock of imp_lock might cause deadlock.
parent 824c90ba
No related branches found
No related tags found
No related merge requests found
...@@ -519,6 +519,7 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request, ...@@ -519,6 +519,7 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request,
spin_unlock(&imp->imp_lock); spin_unlock(&imp->imp_lock);
RETURN(0); RETURN(0);
} }
spin_unlock(&imp->imp_lock);
if (rc) if (rc)
GOTO(out, rc); GOTO(out, rc);
...@@ -528,6 +529,7 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request, ...@@ -528,6 +529,7 @@ static int ptlrpc_connect_interpret(struct ptlrpc_request *request,
msg_flags = lustre_msg_get_op_flags(request->rq_repmsg); msg_flags = lustre_msg_get_op_flags(request->rq_repmsg);
/* All imports are pingable */ /* All imports are pingable */
spin_lock(&imp->imp_lock);
imp->imp_pingable = 1; imp->imp_pingable = 1;
if (aa->pcaa_initial_connect) { if (aa->pcaa_initial_connect) {
......
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