Lines Matching defs:task
150 * rpc_count_iostats_metrics - tally up per-task stats
151 * @task: completed rpc_task
152 * @op_metrics: stat structure for OP that will accumulate stats from @task
154 void rpc_count_iostats_metrics(const struct rpc_task *task,
157 struct rpc_rqst *req = task->tk_rqstp;
169 op_metrics->om_timeouts += task->tk_timeouts;
176 backlog = ktime_sub(req->rq_xtime, task->tk_start);
182 execute = ktime_sub(now, task->tk_start);
184 if (task->tk_status < 0)
194 * rpc_count_iostats - tally up per-task stats
195 * @task: completed rpc_task
198 * Uses the statidx from @task
200 void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats)
202 rpc_count_iostats_metrics(task,
203 &stats[task->tk_msg.rpc_proc->p_statidx]);