Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34803
b: refs/heads/master
c: 8014793
h: refs/heads/master
i:
  34801: 6bfe43c
  34799: b2e3038
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 23, 2006
1 parent 61fb598 commit cf51000
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 297de4f65698ee1e1c75e27d57933b5fa8227e72
refs/heads/master: 8014793b1b2869445adfe678d64cdacd10e99d53
16 changes: 6 additions & 10 deletions trunk/net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,24 +542,20 @@ void rpc_wake_up_status(struct rpc_wait_queue *queue, int status)
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
*/
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;
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
*/
Expand Down

0 comments on commit cf51000

Please sign in to comment.