diff options
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/clnt.h | 6 | ||||
| -rw-r--r-- | include/linux/sunrpc/sched.h | 1 | ||||
| -rw-r--r-- | include/linux/sunrpc/xprt.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 6740801aa71a..8af2804bab16 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
| @@ -49,6 +49,7 @@ struct rpc_clnt { | |||
| 49 | 49 | ||
| 50 | unsigned int cl_softrtry : 1,/* soft timeouts */ | 50 | unsigned int cl_softrtry : 1,/* soft timeouts */ |
| 51 | cl_discrtry : 1,/* disconnect before retry */ | 51 | cl_discrtry : 1,/* disconnect before retry */ |
| 52 | cl_noretranstimeo: 1,/* No retransmit timeouts */ | ||
| 52 | cl_autobind : 1,/* use getport() */ | 53 | cl_autobind : 1,/* use getport() */ |
| 53 | cl_chatty : 1;/* be verbose */ | 54 | cl_chatty : 1;/* be verbose */ |
| 54 | 55 | ||
| @@ -126,6 +127,7 @@ struct rpc_create_args { | |||
| 126 | #define RPC_CLNT_CREATE_QUIET (1UL << 6) | 127 | #define RPC_CLNT_CREATE_QUIET (1UL << 6) |
| 127 | #define RPC_CLNT_CREATE_INFINITE_SLOTS (1UL << 7) | 128 | #define RPC_CLNT_CREATE_INFINITE_SLOTS (1UL << 7) |
| 128 | #define RPC_CLNT_CREATE_NO_IDLE_TIMEOUT (1UL << 8) | 129 | #define RPC_CLNT_CREATE_NO_IDLE_TIMEOUT (1UL << 8) |
| 130 | #define RPC_CLNT_CREATE_NO_RETRANS_TIMEOUT (1UL << 9) | ||
| 129 | 131 | ||
| 130 | struct rpc_clnt *rpc_create(struct rpc_create_args *args); | 132 | struct rpc_clnt *rpc_create(struct rpc_create_args *args); |
| 131 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, | 133 | struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, |
| @@ -134,6 +136,10 @@ void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); | |||
| 134 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); | 136 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); |
| 135 | struct rpc_clnt *rpc_clone_client_set_auth(struct rpc_clnt *, | 137 | struct rpc_clnt *rpc_clone_client_set_auth(struct rpc_clnt *, |
| 136 | rpc_authflavor_t); | 138 | rpc_authflavor_t); |
| 139 | int rpc_switch_client_transport(struct rpc_clnt *, | ||
| 140 | struct xprt_create *, | ||
| 141 | const struct rpc_timeout *); | ||
| 142 | |||
| 137 | void rpc_shutdown_client(struct rpc_clnt *); | 143 | void rpc_shutdown_client(struct rpc_clnt *); |
| 138 | void rpc_release_client(struct rpc_clnt *); | 144 | void rpc_release_client(struct rpc_clnt *); |
| 139 | void rpc_task_release_client(struct rpc_task *); | 145 | void rpc_task_release_client(struct rpc_task *); |
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 096ee58be11a..3a847de83fab 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
| @@ -122,6 +122,7 @@ struct rpc_task_setup { | |||
| 122 | #define RPC_TASK_SENT 0x0800 /* message was sent */ | 122 | #define RPC_TASK_SENT 0x0800 /* message was sent */ |
| 123 | #define RPC_TASK_TIMEOUT 0x1000 /* fail with ETIMEDOUT on timeout */ | 123 | #define RPC_TASK_TIMEOUT 0x1000 /* fail with ETIMEDOUT on timeout */ |
| 124 | #define RPC_TASK_NOCONNECT 0x2000 /* return ENOTCONN if not connected */ | 124 | #define RPC_TASK_NOCONNECT 0x2000 /* return ENOTCONN if not connected */ |
| 125 | #define RPC_TASK_NO_RETRANS_TIMEOUT 0x4000 /* wait forever for a reply */ | ||
| 125 | 126 | ||
| 126 | #define RPC_IS_ASYNC(t) ((t)->tk_flags & RPC_TASK_ASYNC) | 127 | #define RPC_IS_ASYNC(t) ((t)->tk_flags & RPC_TASK_ASYNC) |
| 127 | #define RPC_IS_SWAPPER(t) ((t)->tk_flags & RPC_TASK_SWAPPER) | 128 | #define RPC_IS_SWAPPER(t) ((t)->tk_flags & RPC_TASK_SWAPPER) |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index cec7b9b5e1bf..8097b9df6773 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
| @@ -288,7 +288,7 @@ int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task); | |||
| 288 | int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); | 288 | int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task); |
| 289 | void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); | 289 | void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); |
| 290 | void xprt_lock_and_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); | 290 | void xprt_lock_and_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task); |
| 291 | int xprt_prepare_transmit(struct rpc_task *task); | 291 | bool xprt_prepare_transmit(struct rpc_task *task); |
| 292 | void xprt_transmit(struct rpc_task *task); | 292 | void xprt_transmit(struct rpc_task *task); |
| 293 | void xprt_end_transmit(struct rpc_task *task); | 293 | void xprt_end_transmit(struct rpc_task *task); |
| 294 | int xprt_adjust_timeout(struct rpc_rqst *req); | 294 | int xprt_adjust_timeout(struct rpc_rqst *req); |
