Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164632
b: refs/heads/master
c: 6951867
h: refs/heads/master
v: v3
  • Loading branch information
Benny Halevy authored and J. Bruce Fields committed Sep 10, 2009
1 parent 376f119 commit b35d9be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 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: aed100fafb90aaabe8fb31e58af9dc7e68696507
refs/heads/master: 6951867b9967066eda090f46ad91ce69e0ead611
7 changes: 2 additions & 5 deletions trunk/net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include <linux/sunrpc/clnt.h>

#include "sunrpc.h"

#ifdef RPC_DEBUG
#define RPCDBG_FACILITY RPCDBG_SCHED
#define RPC_TASK_MAGIC_ID 0xf00baa
Expand Down Expand Up @@ -711,11 +713,6 @@ static void rpc_async_schedule(struct work_struct *work)
__rpc_execute(container_of(work, struct rpc_task, u.tk_work));
}

struct rpc_buffer {
size_t len;
char data[];
};

/**
* rpc_malloc - allocate an RPC buffer
* @task: RPC task that will use this buffer
Expand Down
10 changes: 10 additions & 0 deletions trunk/net/sunrpc/sunrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef _NET_SUNRPC_SUNRPC_H
#define _NET_SUNRPC_SUNRPC_H

#include <linux/net.h>

/*
* Header for dynamically allocated rpc buffers.
*/
struct rpc_buffer {
size_t len;
char data[];
};

static inline int rpc_reply_expected(struct rpc_task *task)
{
return (task->tk_msg.rpc_proc != NULL) &&
Expand Down

0 comments on commit b35d9be

Please sign in to comment.