diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-02-18 05:29:17 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-02-23 06:34:42 +0300 |
commit | 90a4323ccfeaa2ef35a8f4c6443ee5106453d961 (patch) | |
tree | 515f390ae9369e93d0da20e23f9413adeb4173cf /drivers/md/dm-mpath.c | |
parent | 9659f811446a67951127d4e81576204ffce9c86e (diff) | |
download | linux-90a4323ccfeaa2ef35a8f4c6443ee5106453d961.tar.xz |
dm path selector: remove 'repeat_count' return from .select_path hook
If a path selector has any use for a repeat_count it should be handled
locally and not depend on the dm-mpath core to be concerned with it.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 0c32b2b7856c..09fb205a34a0 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -318,9 +318,8 @@ static int __choose_path_in_pg(struct multipath *m, struct priority_group *pg, size_t nr_bytes) { struct dm_path *path; - unsigned repeat_count; - path = pg->ps.type->select_path(&pg->ps, &repeat_count, nr_bytes); + path = pg->ps.type->select_path(&pg->ps, nr_bytes); if (!path) return -ENXIO; |