aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r--net/sunrpc/sched.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index ecf366351bf7..6390461a9756 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -542,24 +542,20 @@ void rpc_wake_up_status(struct rpc_wait_queue *queue, int status)
542 spin_unlock_bh(&queue->lock); 542 spin_unlock_bh(&queue->lock);
543} 543}
544 544
545static void __rpc_atrun(struct rpc_task *task)
546{
547 rpc_wake_up_task(task);
548}
549
545/* 550/*
546 * Run a task at a later time 551 * Run a task at a later time
547 */ 552 */
548static void __rpc_atrun(struct rpc_task *); 553void rpc_delay(struct rpc_task *task, unsigned long delay)
549void
550rpc_delay(struct rpc_task *task, unsigned long delay)
551{ 554{
552 task->tk_timeout = delay; 555 task->tk_timeout = delay;
553 rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun); 556 rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun);
554} 557}
555 558
556static void
557__rpc_atrun(struct rpc_task *task)
558{
559 task->tk_status = 0;
560 rpc_wake_up_task(task);
561}
562
563/* 559/*
564 * Helper to call task->tk_ops->rpc_call_prepare 560 * Helper to call task->tk_ops->rpc_call_prepare
565 */ 561 */