Lines Matching +full:rpc +full:- +full:if

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Scheduling primitives for kernel Sun RPC.
22 * This is the actual RPC procedure call info.
46 to_increment; /* if !exponential */
52 * This is the RPC task struct
69 struct rpc_wait_queue *tk_waitqueue; /* RPC wait queue we're on */
72 struct rpc_wait tk_wait; /* RPC wait */
76 * RPC call state
78 struct rpc_message tk_msg; /* RPC call info */
82 struct rpc_clnt * tk_client; /* RPC client */
86 struct rpc_rqst * tk_rqstp; /* RPC request */
91 ktime_t tk_start; /* RPC task init timestamp */
95 int tk_rpc_status; /* Result of last RPC operation */
99 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || IS_ENABLED(CONFIG_TRACEPOINTS)
130 * RPC task flags
134 #define RPC_TASK_MOVEABLE 0x0004 /* nfs4.1+ rpc tasks */
140 #define RPC_TASK_SOFTCONN 0x0400 /* Fail if can't connect */
143 #define RPC_TASK_NOCONNECT 0x2000 /* return ENOTCONN if not connected */
147 #define RPC_IS_ASYNC(t) ((t)->tk_flags & RPC_TASK_ASYNC)
148 #define RPC_IS_SWAPPER(t) ((t)->tk_flags & RPC_TASK_SWAPPER)
149 #define RPC_IS_SOFT(t) ((t)->tk_flags & (RPC_TASK_SOFT|RPC_TASK_TIMEOUT))
150 #define RPC_IS_SOFTCONN(t) ((t)->tk_flags & RPC_TASK_SOFTCONN)
151 #define RPC_WAS_SENT(t) ((t)->tk_flags & RPC_TASK_SENT)
152 #define RPC_IS_MOVEABLE(t) ((t)->tk_flags & RPC_TASK_MOVEABLE)
163 test_and_set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
164 #define rpc_clear_running(t) clear_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
166 #define RPC_IS_QUEUED(t) test_bit(RPC_TASK_QUEUED, &(t)->tk_runstate)
167 #define rpc_set_queued(t) set_bit(RPC_TASK_QUEUED, &(t)->tk_runstate)
168 #define rpc_clear_queued(t) clear_bit(RPC_TASK_QUEUED, &(t)->tk_runstate)
170 #define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate)
172 #define RPC_SIGNALLED(t) test_bit(RPC_TASK_SIGNALLED, &(t)->tk_runstate)
176 * Note: if you change these, you must also change
179 #define RPC_PRIORITY_LOW (-1)
183 #define RPC_NR_PRIORITY (1 + RPC_PRIORITY_PRIVILEGED - RPC_PRIORITY_LOW)
192 * RPC synchronization objects
197 unsigned char maxpriority; /* maximum priority (0 if queue is not a priority queue) */
202 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || IS_ENABLED(CONFIG_TRACEPOINTS)
212 #define RPC_IS_PRIORITY(q) ((q)->maxpriority > 0)
273 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
284 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) || IS_ENABLED(CONFIG_TRACEPOINTS)
287 return ((q && q->name) ? q->name : "unknown"); in rpc_qname()
293 q->name = name; in rpc_assign_waitqueue_name()
302 #if IS_ENABLED(CONFIG_SUNRPC_SWAP)
309 return -EINVAL; in rpc_clnt_swap_activate()