Lines Matching refs:task

65 	struct rpc_task		*task;  in nfs_reqlist_init()  local
73 if (!(task = rpc_new_task(server->client, NULL, RPC_TASK_ASYNC))) in nfs_reqlist_init()
79 if (cache->task) in nfs_reqlist_init()
82 task->tk_calldata = server; in nfs_reqlist_init()
84 cache->task = task; in nfs_reqlist_init()
90 task->tk_action = nfs_flushd; in nfs_reqlist_init()
91 task->tk_exit = nfs_flushd_exit; in nfs_reqlist_init()
93 rpc_execute(task); in nfs_reqlist_init()
97 if (task) in nfs_reqlist_init()
98 rpc_release_task(task); in nfs_reqlist_init()
112 dprintk("NFS: reqlist_exit (ptr %p rpc %p)\n", cache, cache->task); in nfs_reqlist_exit()
114 while (cache->task) { in nfs_reqlist_exit()
115 rpc_exit(cache->task, 0); in nfs_reqlist_exit()
116 rpc_wake_up_task(cache->task); in nfs_reqlist_exit()
152 nfs_flushd(struct rpc_task *task) in nfs_flushd() argument
158 dprintk("NFS: %4d flushd starting\n", task->tk_pid); in nfs_flushd()
159 server = (struct nfs_server *) task->tk_calldata; in nfs_flushd()
185 dprintk("NFS: %4d flushd back to sleep\n", task->tk_pid); in nfs_flushd()
186 if (task->tk_action) { in nfs_flushd()
187 task->tk_timeout = NFS_FLUSHD_TIMEOUT; in nfs_flushd()
188 cache->runat = jiffies + task->tk_timeout; in nfs_flushd()
189 rpc_sleep_on(&flushd_queue, task, NULL, NULL); in nfs_flushd()
194 nfs_flushd_exit(struct rpc_task *task) in nfs_flushd_exit() argument
198 server = (struct nfs_server *) task->tk_calldata; in nfs_flushd_exit()
201 if (cache->task == task) in nfs_flushd_exit()
202 cache->task = NULL; in nfs_flushd_exit()