aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2009-04-01 09:22:40 -0400
committerBenny Halevy <bhalevy@panasas.com>2009-06-17 15:25:07 -0400
commitaae2006e9b0c294114915c13022fa348e1a88023 (patch)
tree2643d2ed1b2d44c5e5d7577e1ae0516eae95f977 /net
parentc3fad1b1aaf850bf692642642ace7cd0d64af0a3 (diff)
nfs41: sunrpc: Export the call prepare state for session reset
Signed-off-by: Andy Adamson<andros@netapp.com> Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/clnt.c13
-rw-r--r--net/sunrpc/sched.c2
2 files changed, 14 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 5abab094441f..d00e8135f866 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -695,6 +695,19 @@ void rpc_force_rebind(struct rpc_clnt *clnt)
695EXPORT_SYMBOL_GPL(rpc_force_rebind); 695EXPORT_SYMBOL_GPL(rpc_force_rebind);
696 696
697/* 697/*
698 * Restart an (async) RPC call from the call_prepare state.
699 * Usually called from within the exit handler.
700 */
701void
702rpc_restart_call_prepare(struct rpc_task *task)
703{
704 if (RPC_ASSASSINATED(task))
705 return;
706 task->tk_action = rpc_prepare_task;
707}
708EXPORT_SYMBOL_GPL(rpc_restart_call_prepare);
709
710/*
698 * Restart an (async) RPC call. Usually called from within the 711 * Restart an (async) RPC call. Usually called from within the
699 * exit handler. 712 * exit handler.
700 */ 713 */
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index ff50a0546865..1102ce1251f7 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -569,7 +569,7 @@ EXPORT_SYMBOL_GPL(rpc_delay);
569/* 569/*
570 * Helper to call task->tk_ops->rpc_call_prepare 570 * Helper to call task->tk_ops->rpc_call_prepare
571 */ 571 */
572static void rpc_prepare_task(struct rpc_task *task) 572void rpc_prepare_task(struct rpc_task *task)
573{ 573{
574 task->tk_ops->rpc_call_prepare(task, task->tk_calldata); 574 task->tk_ops->rpc_call_prepare(task, task->tk_calldata);
575} 575}