Lines Matching defs:pi2
201 * Compare the estimated service time of 2 paths, pi1 and pi2,
206 * 0 : no difference between pi1 and pi2
207 * > 0 : pi2 is better
215 static int st_compare_load(struct path_info *pi1, struct path_info *pi2,
221 sz2 = atomic_read(&pi2->in_flight_size);
226 if (pi1->relative_throughput == pi2->relative_throughput)
234 !pi1->relative_throughput || !pi2->relative_throughput)
235 return pi2->relative_throughput - pi1->relative_throughput;
241 * Service time using pi2:
242 * st2 = (sz2 + incoming) / pi2->relative_throughput
249 * (sz2 + incoming) / pi2->relative_throughput
250 * (sz1 + incoming) * pi2->relative_throughput <
266 st1 = sz1 * pi2->relative_throughput;
274 return pi2->relative_throughput - pi1->relative_throughput;