diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-25 18:32:34 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:31 -0500 |
commit | b3ef8b3bb93300e58a4c4806207de3de4eb76f48 (patch) | |
tree | d02db9d538477b5a98abcb7945dbf81fa9b8e4ec /net/sunrpc/clnt.c | |
parent | 77de2c590ec72828156d85fa13a96db87301cc68 (diff) |
SUNRPC: Allow rpc_init_task() to initialise the rpc_task->tk_msg
In preparation for the removal of rpc_call_setup().
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 7aeffeebf42d..6eb79c49c937 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -540,13 +540,10 @@ struct rpc_task *rpc_run_task(const struct rpc_task_setup *task_setup_data) | |||
540 | goto out; | 540 | goto out; |
541 | } | 541 | } |
542 | 542 | ||
543 | if (task_setup_data->rpc_message != NULL) { | 543 | if (task->tk_status != 0) { |
544 | rpc_call_setup(task, task_setup_data->rpc_message, 0); | 544 | ret = ERR_PTR(task->tk_status); |
545 | if (task->tk_status != 0) { | 545 | rpc_put_task(task); |
546 | ret = ERR_PTR(task->tk_status); | 546 | goto out; |
547 | rpc_put_task(task); | ||
548 | goto out; | ||
549 | } | ||
550 | } | 547 | } |
551 | atomic_inc(&task->tk_count); | 548 | atomic_inc(&task->tk_count); |
552 | /* Mask signals on synchronous RPC calls and RPCSEC_GSS upcalls */ | 549 | /* Mask signals on synchronous RPC calls and RPCSEC_GSS upcalls */ |