Lines Matching full:task
39 * This is the RPC task struct
80 unsigned char tk_priority : 2;/* Task priority */
81 unsigned long tk_runstate; /* Task run status */
86 struct work_struct tk_work; /* Async task work queue */
92 unsigned long tk_start; /* RPC task init timestamp */
103 #define task_for_each(task, pos, head) \
105 if ((task=list_entry(pos, struct rpc_task, u.tk_wait.list)),1)
107 #define task_for_first(task, head) \
109 ((task=list_entry((head)->next, struct rpc_task, u.tk_wait.list)),1))
112 #define alltask_for_each(task, pos, head) \
114 if ((task=list_entry(pos, struct rpc_task, tk_task)),1)
126 * RPC task flags
128 #define RPC_TASK_ASYNC 0x0001 /* is an async task */
130 #define RPC_TASK_CHILD 0x0008 /* is child of other task */
133 #define RPC_TASK_DYNAMIC 0x0080 /* task was kmalloc'ed */
134 #define RPC_TASK_KILLED 0x0100 /* task was killed */
136 #define RPC_TASK_NOINTR 0x0400 /* uninterruptible task */
192 * Task priorities.
194 * the task initialization definitions below.
206 struct list_head tasks[RPC_NR_PRIORITY]; /* task queue for each priority level */
207 unsigned long cookie; /* cookie of last task serviced */
210 unsigned char count; /* # task groups remaining serviced so far */
257 void rpc_init_task(struct rpc_task *task, struct rpc_clnt *clnt,
279 int __rpc_wait_for_completion_task(struct rpc_task *task, int (*)(void *));
287 static inline void rpc_exit(struct rpc_task *task, int status)
289 task->tk_status = status;
290 task->tk_action = rpc_exit_task;
293 static inline int rpc_wait_for_completion_task(struct rpc_task *task)
295 return __rpc_wait_for_completion_task(task, NULL);