mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
nfs41: sunrpc: Export the call prepare state for session reset
Signed-off-by: Andy Adamson<[email protected]> Signed-off-by: Benny Halevy <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
c3fad1b1aa
commit
aae2006e9b
4 changed files with 16 additions and 1 deletions
|
|
@ -694,6 +694,19 @@ void rpc_force_rebind(struct rpc_clnt *clnt)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(rpc_force_rebind);
|
||||
|
||||
/*
|
||||
* Restart an (async) RPC call from the call_prepare state.
|
||||
* Usually called from within the exit handler.
|
||||
*/
|
||||
void
|
||||
rpc_restart_call_prepare(struct rpc_task *task)
|
||||
{
|
||||
if (RPC_ASSASSINATED(task))
|
||||
return;
|
||||
task->tk_action = rpc_prepare_task;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rpc_restart_call_prepare);
|
||||
|
||||
/*
|
||||
* Restart an (async) RPC call. Usually called from within the
|
||||
* exit handler.
|
||||
|
|
|
|||
|
|
@ -569,7 +569,7 @@ EXPORT_SYMBOL_GPL(rpc_delay);
|
|||
/*
|
||||
* Helper to call task->tk_ops->rpc_call_prepare
|
||||
*/
|
||||
static void rpc_prepare_task(struct rpc_task *task)
|
||||
void rpc_prepare_task(struct rpc_task *task)
|
||||
{
|
||||
task->tk_ops->rpc_call_prepare(task, task->tk_calldata);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue