Searched refs:relative_throughput (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/md/
H A Ddm-service-time.c33 unsigned relative_throughput; member in struct:path_info
94 pi->relative_throughput); st_status()
98 pi->relative_throughput); st_status()
112 unsigned relative_throughput = 1; st_add_path() local
116 * Arguments: [<repeat_count> [<relative_throughput>]] st_add_path()
119 * <relative_throughput>: The relative throughput value of st_add_path()
138 (sscanf(argv[1], "%u%c", &relative_throughput, &dummy) != 1 || st_add_path()
139 relative_throughput > ST_MAX_RELATIVE_THROUGHPUT)) { st_add_path()
140 *error = "service-time ps: invalid relative_throughput value"; st_add_path()
153 pi->relative_throughput = relative_throughput; st_add_path()
192 * ('pi->in-flight-size' + 'incoming') / 'pi->relative_throughput'
207 if (pi1->relative_throughput == pi2->relative_throughput) st_compare_load()
215 !pi1->relative_throughput || !pi2->relative_throughput) st_compare_load()
216 return pi2->relative_throughput - pi1->relative_throughput; st_compare_load()
221 * st1 = (sz1 + incoming) / pi1->relative_throughput st_compare_load()
223 * st2 = (sz2 + incoming) / pi2->relative_throughput st_compare_load()
227 * Because ->relative_throughput > 0 here, if st1 < st2, st_compare_load()
229 * (sz1 + incoming) / pi1->relative_throughput < st_compare_load()
230 * (sz2 + incoming) / pi2->relative_throughput st_compare_load()
231 * (sz1 + incoming) * pi2->relative_throughput < st_compare_load()
232 * (sz2 + incoming) * pi1->relative_throughput st_compare_load()
240 * Size may be too big for multiplying pi->relative_throughput st_compare_load()
247 st1 = sz1 * pi2->relative_throughput; st_compare_load()
248 st2 = sz2 * pi1->relative_throughput; st_compare_load()
255 return pi2->relative_throughput - pi1->relative_throughput; st_compare_load()

Completed in 51 milliseconds