Lines Matching defs:path
12 * queue-length path selector - choose a path with the least number of
17 #include "dm-path-selector.h"
37 struct dm_path *path;
86 static int ql_status(struct path_selector *ps, struct dm_path *path,
92 /* When called with NULL path, return selector status/args. */
93 if (!path)
96 pi = path->pscontext;
111 static int ql_add_path(struct path_selector *ps, struct dm_path *path,
122 * <repeat_count>: The number of I/Os before switching path.
140 /* Allocate the path information structure */
143 *error = "queue-length ps: Error allocating path information";
147 pi->path = path;
151 path->pscontext = pi;
160 static void ql_fail_path(struct path_selector *ps, struct dm_path *path)
163 struct path_info *pi = path->pscontext;
171 static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path)
174 struct path_info *pi = path->pscontext;
185 * Select a path having the minimum number of in-flight I/Os
213 ret = best->path;
219 static int ql_start_io(struct path_selector *ps, struct dm_path *path,
222 struct path_info *pi = path->pscontext;
229 static int ql_end_io(struct path_selector *ps, struct dm_path *path,
232 struct path_info *pi = path->pscontext;
281 DM_NAME " path selector to balance the number of in-flight I/Os"