Lines Matching defs:task
125 * @task: the rpc_task that should wait
129 * task has been put to sleep.
132 nfs_async_iocounter_wait(struct rpc_task *task, struct nfs_lock_context *l_ctx)
138 rpc_sleep_on(&NFS_SERVER(inode)->uoc_rpcwaitq, task, NULL);
143 rpc_wake_up_queued_task(&NFS_SERVER(inode)->uoc_rpcwaitq, task);
744 * @task: The current task
747 static void nfs_pgio_prepare(struct rpc_task *task, void *calldata)
751 err = NFS_PROTO(hdr->inode)->pgio_rpc_prepare(task, hdr);
753 rpc_exit(task, err);
760 struct rpc_task *task;
768 .task = &hdr->task,
785 task = rpc_run_task(&task_setup_data);
786 if (IS_ERR(task))
787 return PTR_ERR(task);
788 rpc_put_task(task);
865 * @task: The task that ran
868 static void nfs_pgio_result(struct rpc_task *task, void *calldata)
874 task->tk_pid, task->tk_status);
876 if (hdr->rw_ops->rw_done(task, hdr, inode) != 0)
878 if (task->tk_status < 0)
879 nfs_set_pgio_error(hdr, task->tk_status, hdr->args.offset);
881 hdr->rw_ops->rw_result(task, hdr);
885 * Create an RPC task for the given read or write request and kick it.