aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/xprt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r--include/linux/sunrpc/xprt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index 30834be03011..cec7b9b5e1bf 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -255,6 +255,9 @@ static inline int bc_prealloc(struct rpc_rqst *req)
255} 255}
256#endif /* CONFIG_SUNRPC_BACKCHANNEL */ 256#endif /* CONFIG_SUNRPC_BACKCHANNEL */
257 257
258#define XPRT_CREATE_INFINITE_SLOTS (1U)
259#define XPRT_CREATE_NO_IDLE_TIMEOUT (1U << 1)
260
258struct xprt_create { 261struct xprt_create {
259 int ident; /* XPRT_TRANSPORT identifier */ 262 int ident; /* XPRT_TRANSPORT identifier */
260 struct net * net; 263 struct net * net;
@@ -263,6 +266,7 @@ struct xprt_create {
263 size_t addrlen; 266 size_t addrlen;
264 const char *servername; 267 const char *servername;
265 struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */ 268 struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */
269 unsigned int flags;
266}; 270};
267 271
268struct xprt_class { 272struct xprt_class {
@@ -279,6 +283,7 @@ struct xprt_class {
279struct rpc_xprt *xprt_create_transport(struct xprt_create *args); 283struct rpc_xprt *xprt_create_transport(struct xprt_create *args);
280void xprt_connect(struct rpc_task *task); 284void xprt_connect(struct rpc_task *task);
281void xprt_reserve(struct rpc_task *task); 285void xprt_reserve(struct rpc_task *task);
286void xprt_retry_reserve(struct rpc_task *task);
282int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task); 287int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
283int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); 288int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
284void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); 289void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task);
@@ -334,6 +339,7 @@ int xs_swapper(struct rpc_xprt *xprt, int enable);
334#define XPRT_CLOSING (6) 339#define XPRT_CLOSING (6)
335#define XPRT_CONNECTION_ABORT (7) 340#define XPRT_CONNECTION_ABORT (7)
336#define XPRT_CONNECTION_CLOSE (8) 341#define XPRT_CONNECTION_CLOSE (8)
342#define XPRT_CONGESTED (9)
337 343
338static inline void xprt_set_connected(struct rpc_xprt *xprt) 344static inline void xprt_set_connected(struct rpc_xprt *xprt)
339{ 345{