Loading net/sunrpc/sched.c +6 −10 Original line number Original line Diff line number Diff line Loading @@ -542,24 +542,20 @@ void rpc_wake_up_status(struct rpc_wait_queue *queue, int status) spin_unlock_bh(&queue->lock); spin_unlock_bh(&queue->lock); } } static void __rpc_atrun(struct rpc_task *task) { rpc_wake_up_task(task); } /* /* * Run a task at a later time * Run a task at a later time */ */ static void __rpc_atrun(struct rpc_task *); void rpc_delay(struct rpc_task *task, unsigned long delay) void rpc_delay(struct rpc_task *task, unsigned long delay) { { task->tk_timeout = delay; task->tk_timeout = delay; rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun); rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun); } } static void __rpc_atrun(struct rpc_task *task) { task->tk_status = 0; rpc_wake_up_task(task); } /* /* * Helper to call task->tk_ops->rpc_call_prepare * Helper to call task->tk_ops->rpc_call_prepare */ */ Loading Loading
net/sunrpc/sched.c +6 −10 Original line number Original line Diff line number Diff line Loading @@ -542,24 +542,20 @@ void rpc_wake_up_status(struct rpc_wait_queue *queue, int status) spin_unlock_bh(&queue->lock); spin_unlock_bh(&queue->lock); } } static void __rpc_atrun(struct rpc_task *task) { rpc_wake_up_task(task); } /* /* * Run a task at a later time * Run a task at a later time */ */ static void __rpc_atrun(struct rpc_task *); void rpc_delay(struct rpc_task *task, unsigned long delay) void rpc_delay(struct rpc_task *task, unsigned long delay) { { task->tk_timeout = delay; task->tk_timeout = delay; rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun); rpc_sleep_on(&delay_queue, task, NULL, __rpc_atrun); } } static void __rpc_atrun(struct rpc_task *task) { task->tk_status = 0; rpc_wake_up_task(task); } /* /* * Helper to call task->tk_ops->rpc_call_prepare * Helper to call task->tk_ops->rpc_call_prepare */ */ Loading