Lines Matching defs:path
13 * queue-length path selector - choose a path with the least number of
18 #include "dm-path-selector.h"
38 struct dm_path *path;
87 static int ql_status(struct path_selector *ps, struct dm_path *path,
93 /* When called with NULL path, return selector status/args. */
94 if (!path)
97 pi = path->pscontext;
115 static int ql_add_path(struct path_selector *ps, struct dm_path *path,
126 * <repeat_count>: The number of I/Os before switching path.
144 /* Allocate the path information structure */
147 *error = "queue-length ps: Error allocating path information";
151 pi->path = path;
155 path->pscontext = pi;
164 static void ql_fail_path(struct path_selector *ps, struct dm_path *path)
167 struct path_info *pi = path->pscontext;
175 static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path)
178 struct path_info *pi = path->pscontext;
189 * Select a path having the minimum number of in-flight I/Os
217 ret = best->path;
223 static int ql_start_io(struct path_selector *ps, struct dm_path *path,
226 struct path_info *pi = path->pscontext;
233 static int ql_end_io(struct path_selector *ps, struct dm_path *path,
236 struct path_info *pi = path->pscontext;
285 DM_NAME " path selector to balance the number of in-flight I/Os"