diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/sunrpc | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/sunrpc/clnt.h | 2 | ||||
| -rw-r--r-- | include/linux/sunrpc/debug.h | 39 | ||||
| -rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 5 | ||||
| -rw-r--r-- | include/linux/sunrpc/svcsock.h | 3 | ||||
| -rw-r--r-- | include/linux/sunrpc/xprt.h | 6 |
6 files changed, 9 insertions, 47 deletions
diff --git a/include/linux/sunrpc/Kbuild b/include/linux/sunrpc/Kbuild index 98df21164a86..e69de29bb2d1 100644 --- a/include/linux/sunrpc/Kbuild +++ b/include/linux/sunrpc/Kbuild | |||
| @@ -1 +0,0 @@ | |||
| 1 | header-y += debug.h | ||
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 523547ecfee2..34206b84d8da 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
| @@ -130,6 +130,8 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, | |||
| 130 | const struct rpc_program *, u32); | 130 | const struct rpc_program *, u32); |
| 131 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); | 131 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); |
| 132 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); | 132 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); |
| 133 | struct rpc_clnt *rpc_clone_client_set_auth(struct rpc_clnt *, | ||
| 134 | rpc_authflavor_t); | ||
| 133 | void rpc_shutdown_client(struct rpc_clnt *); | 135 | void rpc_shutdown_client(struct rpc_clnt *); |
| 134 | void rpc_release_client(struct rpc_clnt *); | 136 | void rpc_release_client(struct rpc_clnt *); |
| 135 | void rpc_task_release_client(struct rpc_task *); | 137 | void rpc_task_release_client(struct rpc_task *); |
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index a76cc20d98ce..9385bd74c860 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
| @@ -5,28 +5,11 @@ | |||
| 5 | * | 5 | * |
| 6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> | 6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> |
| 7 | */ | 7 | */ |
| 8 | |||
| 9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ | 8 | #ifndef _LINUX_SUNRPC_DEBUG_H_ |
| 10 | #define _LINUX_SUNRPC_DEBUG_H_ | 9 | #define _LINUX_SUNRPC_DEBUG_H_ |
| 11 | 10 | ||
| 12 | /* | 11 | #include <uapi/linux/sunrpc/debug.h> |
| 13 | * RPC debug facilities | ||
| 14 | */ | ||
| 15 | #define RPCDBG_XPRT 0x0001 | ||
| 16 | #define RPCDBG_CALL 0x0002 | ||
| 17 | #define RPCDBG_DEBUG 0x0004 | ||
| 18 | #define RPCDBG_NFS 0x0008 | ||
| 19 | #define RPCDBG_AUTH 0x0010 | ||
| 20 | #define RPCDBG_BIND 0x0020 | ||
| 21 | #define RPCDBG_SCHED 0x0040 | ||
| 22 | #define RPCDBG_TRANS 0x0080 | ||
| 23 | #define RPCDBG_SVCXPRT 0x0100 | ||
| 24 | #define RPCDBG_SVCDSP 0x0200 | ||
| 25 | #define RPCDBG_MISC 0x0400 | ||
| 26 | #define RPCDBG_CACHE 0x0800 | ||
| 27 | #define RPCDBG_ALL 0x7fff | ||
| 28 | 12 | ||
| 29 | #ifdef __KERNEL__ | ||
| 30 | 13 | ||
| 31 | /* | 14 | /* |
| 32 | * Enable RPC debugging/profiling. | 15 | * Enable RPC debugging/profiling. |
| @@ -87,24 +70,4 @@ void rpc_register_sysctl(void); | |||
| 87 | void rpc_unregister_sysctl(void); | 70 | void rpc_unregister_sysctl(void); |
| 88 | #endif | 71 | #endif |
| 89 | 72 | ||
| 90 | #endif /* __KERNEL__ */ | ||
| 91 | |||
| 92 | /* | ||
| 93 | * Declarations for the sysctl debug interface, which allows to read or | ||
| 94 | * change the debug flags for rpc, nfs, nfsd, and lockd. Since the sunrpc | ||
| 95 | * module currently registers its sysctl table dynamically, the sysctl path | ||
| 96 | * for module FOO is <CTL_SUNRPC, CTL_FOODEBUG>. | ||
| 97 | */ | ||
| 98 | |||
| 99 | enum { | ||
| 100 | CTL_RPCDEBUG = 1, | ||
| 101 | CTL_NFSDEBUG, | ||
| 102 | CTL_NFSDDEBUG, | ||
| 103 | CTL_NLMDEBUG, | ||
| 104 | CTL_SLOTTABLE_UDP, | ||
| 105 | CTL_SLOTTABLE_TCP, | ||
| 106 | CTL_MIN_RESVPORT, | ||
| 107 | CTL_MAX_RESVPORT, | ||
| 108 | }; | ||
| 109 | |||
| 110 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ | 73 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ |
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index b3f64b12f141..b05963f09ebf 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
| @@ -114,7 +114,6 @@ void svc_xprt_init(struct net *, struct svc_xprt_class *, struct svc_xprt *, | |||
| 114 | int svc_create_xprt(struct svc_serv *, const char *, struct net *, | 114 | int svc_create_xprt(struct svc_serv *, const char *, struct net *, |
| 115 | const int, const unsigned short, int); | 115 | const int, const unsigned short, int); |
| 116 | void svc_xprt_enqueue(struct svc_xprt *xprt); | 116 | void svc_xprt_enqueue(struct svc_xprt *xprt); |
| 117 | void svc_xprt_received(struct svc_xprt *); | ||
| 118 | void svc_xprt_put(struct svc_xprt *xprt); | 117 | void svc_xprt_put(struct svc_xprt *xprt); |
| 119 | void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt); | 118 | void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt); |
| 120 | void svc_close_xprt(struct svc_xprt *xprt); | 119 | void svc_close_xprt(struct svc_xprt *xprt); |
| @@ -124,6 +123,7 @@ struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name, | |||
| 124 | struct net *net, const sa_family_t af, | 123 | struct net *net, const sa_family_t af, |
| 125 | const unsigned short port); | 124 | const unsigned short port); |
| 126 | int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen); | 125 | int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen); |
| 126 | void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt); | ||
| 127 | 127 | ||
| 128 | static inline void svc_xprt_get(struct svc_xprt *xprt) | 128 | static inline void svc_xprt_get(struct svc_xprt *xprt) |
| 129 | { | 129 | { |
| @@ -166,8 +166,7 @@ static inline size_t svc_addr_len(const struct sockaddr *sa) | |||
| 166 | case AF_INET6: | 166 | case AF_INET6: |
| 167 | return sizeof(struct sockaddr_in6); | 167 | return sizeof(struct sockaddr_in6); |
| 168 | } | 168 | } |
| 169 | 169 | BUG(); | |
| 170 | return 0; | ||
| 171 | } | 170 | } |
| 172 | 171 | ||
| 173 | static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) | 172 | static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) |
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index cb4ac69e1f33..92ad02f0dcc0 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
| @@ -39,9 +39,6 @@ int svc_recv(struct svc_rqst *, long); | |||
| 39 | int svc_send(struct svc_rqst *); | 39 | int svc_send(struct svc_rqst *); |
| 40 | void svc_drop(struct svc_rqst *); | 40 | void svc_drop(struct svc_rqst *); |
| 41 | void svc_sock_update_bufs(struct svc_serv *serv); | 41 | void svc_sock_update_bufs(struct svc_serv *serv); |
| 42 | int svc_sock_names(struct svc_serv *serv, char *buf, | ||
| 43 | const size_t buflen, | ||
| 44 | const char *toclose); | ||
| 45 | int svc_addsock(struct svc_serv *serv, const int fd, | 42 | int svc_addsock(struct svc_serv *serv, const int fd, |
| 46 | char *name_return, const size_t len); | 43 | char *name_return, const size_t len); |
| 47 | void svc_init_xprt_sock(void); | 44 | void svc_init_xprt_sock(void); |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index cff40aa7db62..951cb9b7d02b 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
| @@ -114,6 +114,7 @@ struct rpc_xprt_ops { | |||
| 114 | void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize); | 114 | void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize); |
| 115 | int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); | 115 | int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); |
| 116 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); | 116 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); |
| 117 | void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task); | ||
| 117 | void (*rpcbind)(struct rpc_task *task); | 118 | void (*rpcbind)(struct rpc_task *task); |
| 118 | void (*set_port)(struct rpc_xprt *xprt, unsigned short port); | 119 | void (*set_port)(struct rpc_xprt *xprt, unsigned short port); |
| 119 | void (*connect)(struct rpc_task *task); | 120 | void (*connect)(struct rpc_task *task); |
| @@ -172,8 +173,7 @@ struct rpc_xprt { | |||
| 172 | unsigned int min_reqs; /* min number of slots */ | 173 | unsigned int min_reqs; /* min number of slots */ |
| 173 | atomic_t num_reqs; /* total slots */ | 174 | atomic_t num_reqs; /* total slots */ |
| 174 | unsigned long state; /* transport state */ | 175 | unsigned long state; /* transport state */ |
| 175 | unsigned char shutdown : 1, /* being shut down */ | 176 | unsigned char resvport : 1; /* use a reserved port */ |
| 176 | resvport : 1; /* use a reserved port */ | ||
| 177 | unsigned int swapper; /* we're swapping over this | 177 | unsigned int swapper; /* we're swapping over this |
| 178 | transport */ | 178 | transport */ |
| 179 | unsigned int bind_index; /* bind function index */ | 179 | unsigned int bind_index; /* bind function index */ |
| @@ -281,6 +281,8 @@ void xprt_connect(struct rpc_task *task); | |||
| 281 | void xprt_reserve(struct rpc_task *task); | 281 | void xprt_reserve(struct rpc_task *task); |
| 282 | int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task); | 282 | int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task); |
| 283 | int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); | 283 | int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); |
| 284 | void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); | ||
| 285 | void xprt_lock_and_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); | ||
| 284 | int xprt_prepare_transmit(struct rpc_task *task); | 286 | int xprt_prepare_transmit(struct rpc_task *task); |
| 285 | void xprt_transmit(struct rpc_task *task); | 287 | void xprt_transmit(struct rpc_task *task); |
| 286 | void xprt_end_transmit(struct rpc_task *task); | 288 | void xprt_end_transmit(struct rpc_task *task); |
