Lines Matching defs:multipath
30 #define DM_MSG_PREFIX "multipath"
59 struct multipath *m; /* Owning multipath instance */
70 struct multipath {
131 static bool mpath_double_check_test_bit(int MPATHF_bit, struct multipath *m)
203 static struct multipath *alloc_multipath(struct dm_target *ti)
205 struct multipath *m;
226 static int alloc_multipath_stage2(struct dm_target *ti, struct multipath *m)
254 static void free_multipath(struct multipath *m)
307 static int __pg_init_all_paths(struct multipath *m)
338 static int pg_init_all_paths(struct multipath *m)
350 static void __switch_pg(struct multipath *m, struct priority_group *pg)
368 static struct pgpath *choose_path_in_pg(struct multipath *m,
393 static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes)
480 static bool __must_push_back(struct multipath *m)
485 static bool must_push_back_rq(struct multipath *m)
498 * Map cloned requests (request-based multipath)
504 struct multipath *m = ti->private;
586 * Map cloned bios (bio-based multipath)
589 static void __multipath_queue_bio(struct multipath *m, struct bio *bio)
597 static void multipath_queue_bio(struct multipath *m, struct bio *bio)
606 static struct pgpath *__map_bio(struct multipath *m, struct bio *bio)
634 static int __multipath_map_bio(struct multipath *m, struct bio *bio,
664 struct multipath *m = ti->private;
671 static void process_queued_io_list(struct multipath *m)
686 struct multipath *m =
687 container_of(work, struct multipath, process_queued_bios);
732 static int queue_if_no_path(struct multipath *m, bool queue_if_no_path,
781 struct multipath *m = from_timer(m, t, nopath_timer);
792 static void enable_nopath_timeout(struct multipath *m)
807 static void disable_nopath_timeout(struct multipath *m)
818 struct multipath *m =
819 container_of(work, struct multipath, trigger_event);
826 * <#multipath feature args> [<arg>]*
870 static int setup_scsi_dh(struct block_device *bdev, struct multipath *m,
931 struct multipath *m = ti->private;
977 struct multipath *m)
1049 static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)
1067 DMERR("bio-based multipath doesn't allow hardware handler args");
1100 static int parse_features(struct dm_arg_set *as, struct multipath *m)
1165 ti->error = "Unrecognised multipath feature request";
1181 struct multipath *m;
1192 ti->error = "can't allocate multipath";
1270 static void multipath_wait_for_pg_init_completion(struct multipath *m)
1285 static void flush_multipath_work(struct multipath *m)
1314 struct multipath *m = ti->private;
1327 struct multipath *m = pgpath->pg->m;
1367 struct multipath *m = pgpath->pg->m;
1415 static int action_dev(struct multipath *m, struct dm_dev *dev,
1435 static void bypass_pg(struct multipath *m, struct priority_group *pg,
1454 static int switch_pg_num(struct multipath *m, const char *pgstr)
1487 static int bypass_pg_num(struct multipath *m, const char *pgstr, bool bypassed)
1511 static bool pg_init_limit_reached(struct multipath *m, struct pgpath *pgpath)
1533 struct multipath *m = pg->m;
1642 * We don't queue any clone request inside the multipath target
1644 * bio clones. If we queue them inside the multipath target,
1653 struct multipath *m = ti->private;
1686 struct multipath *m = ti->private;
1736 struct multipath *m = ti->private;
1745 struct multipath *m = ti->private;
1757 struct multipath *m = ti->private;
1795 struct multipath *m = ti->private;
1917 struct multipath *m = ti->private;
1943 DMWARN("Invalid multipath message arguments. Expected 2 arguments, got %d.", argc);
1961 DMWARN("Unrecognised multipath message received: %s", argv[0]);
1984 struct multipath *m = ti->private;
2034 struct multipath *m = ti->private;
2069 struct multipath *m = ti->private;
2136 .name = "multipath",
2215 MODULE_DESCRIPTION(DM_NAME " multipath target");