Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45801
b: refs/heads/master
c: bde8f00
h: refs/heads/master
i:
  45799: e657cc4
v: v3
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Jan 24, 2007
1 parent 9c2b240 commit 342b11e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 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: 5394cd218735bf462e72bb827fbb7e47fc15f2f0
refs/heads/master: bde8f00ce64d9824a4f227c8594e335a1a10d044
1 change: 0 additions & 1 deletion trunk/include/linux/sunrpc/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ void rpc_init_task(struct rpc_task *task, struct rpc_clnt *clnt,
int flags, const struct rpc_call_ops *ops,
void *data);
void rpc_put_task(struct rpc_task *);
void rpc_release_task(struct rpc_task *);
void rpc_exit_task(struct rpc_task *);
void rpc_release_calldata(const struct rpc_call_ops *, void *);
void rpc_killall_tasks(struct rpc_clnt *);
Expand Down
8 changes: 3 additions & 5 deletions trunk/net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,16 +490,14 @@ int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, int flags)

/* Set up the call info struct and execute the task */
status = task->tk_status;
if (status != 0) {
rpc_release_task(task);
if (status != 0)
goto out;
}
atomic_inc(&task->tk_count);
status = rpc_execute(task);
if (status == 0)
status = task->tk_status;
rpc_put_task(task);
out:
rpc_put_task(task);
rpc_restore_sigmask(&oldset);
return status;
}
Expand Down Expand Up @@ -537,7 +535,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
if (status == 0)
rpc_execute(task);
else
rpc_release_task(task);
rpc_put_task(task);

rpc_restore_sigmask(&oldset);
return status;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ static mempool_t *rpc_buffer_mempool __read_mostly;
static void __rpc_default_timer(struct rpc_task *task);
static void rpciod_killall(void);
static void rpc_async_schedule(struct work_struct *);
static void rpc_release_task(struct rpc_task *task);

/*
* RPC tasks sit here while waiting for conditions to improve.
Expand Down Expand Up @@ -896,7 +897,7 @@ void rpc_put_task(struct rpc_task *task)
}
EXPORT_SYMBOL(rpc_put_task);

void rpc_release_task(struct rpc_task *task)
static void rpc_release_task(struct rpc_task *task)
{
#ifdef RPC_DEBUG
BUG_ON(task->tk_magic != RPC_TASK_MAGIC_ID);
Expand Down

0 comments on commit 342b11e

Please sign in to comment.