aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-02-28 09:33:47 -0500
committerMike Snitzer <snitzer@redhat.com>2014-03-27 16:56:25 -0400
commit36fcffcc6500228efdfaf3a36761dd57a38366e3 (patch)
treebb51c6bb77311a45df11f18903982562b0b8435c /drivers/md/dm-mpath.c
parente3bde04f1ecef9d0508af9ea78421863744f552b (diff)
dm mpath: remove map_io()
multipath_map() is now just a wrapper around map_io(), so we can rename map_io() to multipath_map(). Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Reviewed-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 2c2c33f24998..07ca77f29438 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -375,9 +375,13 @@ static int __must_push_back(struct multipath *m)
375 375
376#define pg_ready(m) (!(m)->queue_io && !(m)->pg_init_required) 376#define pg_ready(m) (!(m)->queue_io && !(m)->pg_init_required)
377 377
378static int map_io(struct multipath *m, struct request *clone, 378/*
379 union map_info *map_context) 379 * Map cloned requests
380 */
381static int multipath_map(struct dm_target *ti, struct request *clone,
382 union map_info *map_context)
380{ 383{
384 struct multipath *m = (struct multipath *) ti->private;
381 int r = DM_MAPIO_REQUEUE; 385 int r = DM_MAPIO_REQUEUE;
382 size_t nr_bytes = blk_rq_bytes(clone); 386 size_t nr_bytes = blk_rq_bytes(clone);
383 unsigned long flags; 387 unsigned long flags;
@@ -909,17 +913,6 @@ static void multipath_dtr(struct dm_target *ti)
909} 913}
910 914
911/* 915/*
912 * Map cloned requests
913 */
914static int multipath_map(struct dm_target *ti, struct request *clone,
915 union map_info *map_context)
916{
917 struct multipath *m = (struct multipath *) ti->private;
918
919 return map_io(m, clone, map_context);
920}
921
922/*
923 * Take a path out of use. 916 * Take a path out of use.
924 */ 917 */
925static int fail_path(struct pgpath *pgpath) 918static int fail_path(struct pgpath *pgpath)