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>
This commit is contained in:
Mike Snitzer
2016-02-17 21:29:17 -05:00
parent 9659f81144
commit 90a4323ccf
5 changed files with 4 additions and 18 deletions

View File

@@ -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;