Lines Matching full:pi2
198 * Compare the estimated service time of 2 paths, pi1 and pi2,
203 * 0 : no difference between pi1 and pi2
204 * > 0 : pi2 is better
212 static int st_compare_load(struct path_info *pi1, struct path_info *pi2, in st_compare_load() argument
218 sz2 = atomic_read(&pi2->in_flight_size); in st_compare_load()
223 if (pi1->relative_throughput == pi2->relative_throughput) in st_compare_load()
231 !pi1->relative_throughput || !pi2->relative_throughput) in st_compare_load()
232 return pi2->relative_throughput - pi1->relative_throughput; in st_compare_load()
238 * Service time using pi2: in st_compare_load()
239 * st2 = (sz2 + incoming) / pi2->relative_throughput in st_compare_load()
246 * (sz2 + incoming) / pi2->relative_throughput in st_compare_load()
247 * (sz1 + incoming) * pi2->relative_throughput < in st_compare_load()
263 st1 = sz1 * pi2->relative_throughput; in st_compare_load()
271 return pi2->relative_throughput - pi1->relative_throughput; in st_compare_load()