Lines Matching refs:op_metrics
155 struct rpc_iostats *op_metrics) in rpc_count_iostats_metrics() argument
160 if (!op_metrics || !req) in rpc_count_iostats_metrics()
164 spin_lock(&op_metrics->om_lock); in rpc_count_iostats_metrics()
166 op_metrics->om_ops++; in rpc_count_iostats_metrics()
168 op_metrics->om_ntrans += max(req->rq_ntrans, 1); in rpc_count_iostats_metrics()
169 op_metrics->om_timeouts += task->tk_timeouts; in rpc_count_iostats_metrics()
171 op_metrics->om_bytes_sent += req->rq_xmit_bytes_sent; in rpc_count_iostats_metrics()
172 op_metrics->om_bytes_recv += req->rq_reply_bytes_recvd; in rpc_count_iostats_metrics()
177 op_metrics->om_queue = ktime_add(op_metrics->om_queue, backlog); in rpc_count_iostats_metrics()
180 op_metrics->om_rtt = ktime_add(op_metrics->om_rtt, req->rq_rtt); in rpc_count_iostats_metrics()
183 op_metrics->om_execute = ktime_add(op_metrics->om_execute, execute); in rpc_count_iostats_metrics()
185 op_metrics->om_error_status++; in rpc_count_iostats_metrics()
187 spin_unlock(&op_metrics->om_lock); in rpc_count_iostats_metrics()