projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd1441
)
SUNRPC: rpc_restart_call/rpc_restart_call_prepare should clear task->tk_status
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 20 Mar 2014 16:59:09 +0000
(12:59 -0400)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 20 Mar 2014 17:38:44 +0000
(13:38 -0400)
When restarting an rpc call, we should not be carrying over data from the
previous call.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/clnt.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/clnt.c
b/net/sunrpc/clnt.c
index 62f86793b708d02942fd282a8c323e9a256ba2f5..f400445d1a44317ea6d9300f600c43c3bfb1e74f 100644
(file)
--- a/
net/sunrpc/clnt.c
+++ b/
net/sunrpc/clnt.c
@@
-1363,6
+1363,7
@@
rpc_restart_call_prepare(struct rpc_task *task)
if (RPC_ASSASSINATED(task))
return 0;
task->tk_action = call_start;
+ task->tk_status = 0;
if (task->tk_ops->rpc_call_prepare != NULL)
task->tk_action = rpc_prepare_task;
return 1;
@@
-1379,6
+1380,7
@@
rpc_restart_call(struct rpc_task *task)
if (RPC_ASSASSINATED(task))
return 0;
task->tk_action = call_start;
+ task->tk_status = 0;
return 1;
}
EXPORT_SYMBOL_GPL(rpc_restart_call);