Lines Matching refs:task
972 static void nfsd4_cb_probe_done(struct rpc_task *task, void *calldata) in nfsd4_cb_probe_done() argument
976 if (task->tk_status) in nfsd4_cb_probe_done()
977 nfsd4_mark_cb_down(clp, task->tk_status); in nfsd4_cb_probe_done()
1028 static bool nfsd41_cb_get_slot(struct nfsd4_callback *cb, struct rpc_task *task) in nfsd41_cb_get_slot() argument
1034 rpc_sleep_on(&clp->cl_cb_waitq, task, NULL); in nfsd41_cb_get_slot()
1040 rpc_wake_up_queued_task(&clp->cl_cb_waitq, task); in nfsd41_cb_get_slot()
1071 static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata) in nfsd4_cb_prepare() argument
1083 if (minorversion && !nfsd41_cb_get_slot(cb, task)) in nfsd4_cb_prepare()
1085 rpc_call_start(task); in nfsd4_cb_prepare()
1088 static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback *cb) in nfsd4_cb_sequence_done() argument
1104 if (RPC_SIGNALLED(task)) in nfsd4_cb_sequence_done()
1133 if (!rpc_restart_call(task)) in nfsd4_cb_sequence_done()
1136 rpc_delay(task, 2 * HZ); in nfsd4_cb_sequence_done()
1156 if (RPC_SIGNALLED(task)) in nfsd4_cb_sequence_done()
1161 if (rpc_restart_call_prepare(task)) in nfsd4_cb_sequence_done()
1166 task->tk_status = 0; in nfsd4_cb_sequence_done()
1172 static void nfsd4_cb_done(struct rpc_task *task, void *calldata) in nfsd4_cb_done() argument
1177 if (!nfsd4_cb_sequence_done(task, cb)) in nfsd4_cb_done()
1181 WARN_ON_ONCE(task->tk_status); in nfsd4_cb_done()
1182 task->tk_status = cb->cb_status; in nfsd4_cb_done()
1185 switch (cb->cb_ops->done(cb, task)) { in nfsd4_cb_done()
1187 task->tk_status = 0; in nfsd4_cb_done()
1188 rpc_restart_call_prepare(task); in nfsd4_cb_done()
1191 switch (task->tk_status) { in nfsd4_cb_done()
1195 nfsd4_mark_cb_down(clp, task->tk_status); in nfsd4_cb_done()