Commit 315f9a38 authored by Trond Myklebust's avatar Trond Myklebust

RPC: Fix return value of rpc_call_async()

 RPC call async is supposed to return an error if and only if
 it failed to run the rpc_task.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 2f8416db
......@@ -406,12 +406,11 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
rpc_call_setup(task, msg, 0);
/* Set up the call info struct and execute the task */
if (task->tk_status == 0)
status = rpc_execute(task);
else {
status = task->tk_status;
status = task->tk_status;
if (status == 0)
rpc_execute(task);
else
rpc_release_task(task);
}
out:
rpc_clnt_sigunmask(clnt, &oldset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment