Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42492
b: refs/heads/master
c: cc4dc59
h: refs/heads/master
v: v3
  • Loading branch information
Christophe Saout authored and Trond Myklebust committed Dec 6, 2006
1 parent e07064f commit 8d9ec7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: ec0bf39a471bf6fcd01def2bd677128cea940b73
refs/heads/master: cc4dc59e5580d6c0de1685a25b74d32175f43434
10 changes: 6 additions & 4 deletions trunk/net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,15 @@ EXPORT_SYMBOL(__rpc_wait_for_completion_task);
*/
static void rpc_make_runnable(struct rpc_task *task)
{
int do_ret;

BUG_ON(task->tk_timeout_fn);
do_ret = rpc_test_and_set_running(task);
rpc_clear_queued(task);
if (do_ret)
if (rpc_test_and_set_running(task))
return;
/* We might have raced */
if (RPC_IS_QUEUED(task)) {
rpc_clear_running(task);
return;
}
if (RPC_IS_ASYNC(task)) {
int status;

Expand Down

0 comments on commit 8d9ec7d

Please sign in to comment.