Lines Matching defs:task
48 nfs3_async_handle_jukebox(struct rpc_task *task, struct inode *inode)
50 if (task->tk_status != -EJUKEBOX)
52 if (task->tk_status == -EJUKEBOX)
54 task->tk_status = 0;
55 rpc_restart_call(task);
56 rpc_delay(task, NFS_JUKEBOX_RETRY_TIME);
444 static void nfs3_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlinkdata *data)
446 rpc_call_start(task);
450 nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir)
453 if (nfs3_async_handle_jukebox(task, dir))
455 res = task->tk_msg.rpc_resp;
468 static void nfs3_proc_rename_rpc_prepare(struct rpc_task *task, struct nfs_renamedata *data)
470 rpc_call_start(task);
474 nfs3_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
479 if (nfs3_async_handle_jukebox(task, old_dir))
481 res = task->tk_msg.rpc_resp;
823 static int nfs3_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
829 return hdr->pgio_done_cb(task, hdr);
831 if (nfs3_async_handle_jukebox(task, inode))
834 if (task->tk_status >= 0 && !server->read_hdrsize)
849 static int nfs3_proc_pgio_rpc_prepare(struct rpc_task *task,
852 rpc_call_start(task);
856 static int nfs3_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
861 return hdr->pgio_done_cb(task, hdr);
863 if (nfs3_async_handle_jukebox(task, inode))
865 if (task->tk_status >= 0)
877 static void nfs3_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data)
879 rpc_call_start(task);
882 static int nfs3_commit_done(struct rpc_task *task, struct nfs_commit_data *data)
885 return data->commit_done_cb(task, data);
887 if (nfs3_async_handle_jukebox(task, data->inode))
908 static bool nfs3_nlm_unlock_prepare(struct rpc_task *task, void *data)
912 return nfs_async_iocounter_wait(task, l_ctx);