Lines Matching defs:task
145 * rpc_count_iostats_metrics - tally up per-task stats
146 * @task: completed rpc_task
147 * @op_metrics: stat structure for OP that will accumulate stats from @task
149 void rpc_count_iostats_metrics(const struct rpc_task *task,
152 struct rpc_rqst *req = task->tk_rqstp;
164 op_metrics->om_timeouts += task->tk_timeouts;
171 backlog = ktime_sub(req->rq_xtime, task->tk_start);
177 execute = ktime_sub(now, task->tk_start);
179 if (task->tk_status < 0)
189 * rpc_count_iostats - tally up per-task stats
190 * @task: completed rpc_task
193 * Uses the statidx from @task
195 void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats)
197 rpc_count_iostats_metrics(task,
198 &stats[task->tk_msg.rpc_proc->p_statidx]);