aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index c1335487cc72..826bce7343b3 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -607,8 +607,8 @@ static struct pgpath *parse_path(struct arg_set *as, struct path_selector *ps,
607 if (!p) 607 if (!p)
608 return ERR_PTR(-ENOMEM); 608 return ERR_PTR(-ENOMEM);
609 609
610 r = dm_get_device(ti, shift(as), ti->begin, ti->len, 610 r = dm_get_device(ti, shift(as), dm_table_get_mode(ti->table),
611 dm_table_get_mode(ti->table), &p->path.dev); 611 &p->path.dev);
612 if (r) { 612 if (r) {
613 ti->error = "error getting device"; 613 ti->error = "error getting device";
614 goto bad; 614 goto bad;
@@ -1505,8 +1505,7 @@ static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
1505 goto out; 1505 goto out;
1506 } 1506 }
1507 1507
1508 r = dm_get_device(ti, argv[1], ti->begin, ti->len, 1508 r = dm_get_device(ti, argv[1], dm_table_get_mode(ti->table), &dev);
1509 dm_table_get_mode(ti->table), &dev);
1510 if (r) { 1509 if (r) {
1511 DMWARN("message: error getting device %s", 1510 DMWARN("message: error getting device %s",
1512 argv[1]); 1511 argv[1]);