diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-02-18 03:29:17 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-02-23 04:34:42 +0100 |
commit | 90a4323ccfeaa2ef35a8f4c6443ee5106453d961 (patch) | |
tree | 515f390ae9369e93d0da20e23f9413adeb4173cf /drivers/md/dm-service-time.c | |
parent | dm mpath: push path selector locking down to path selectors (diff) | |
download | linux-90a4323ccfeaa2ef35a8f4c6443ee5106453d961.tar.xz linux-90a4323ccfeaa2ef35a8f4c6443ee5106453d961.zip |
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-service-time.c')
-rw-r--r-- | drivers/md/dm-service-time.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/dm-service-time.c b/drivers/md/dm-service-time.c index d09bcbe3655d..7b8642045c55 100644 --- a/drivers/md/dm-service-time.c +++ b/drivers/md/dm-service-time.c @@ -271,8 +271,7 @@ static int st_compare_load(struct path_info *pi1, struct path_info *pi2, return pi2->relative_throughput - pi1->relative_throughput; } -static struct dm_path *st_select_path(struct path_selector *ps, - unsigned *repeat_count, size_t nr_bytes) +static struct dm_path *st_select_path(struct path_selector *ps, size_t nr_bytes) { struct selector *s = ps->context; struct path_info *pi = NULL, *best = NULL; @@ -293,8 +292,6 @@ static struct dm_path *st_select_path(struct path_selector *ps, if (!best) goto out; - *repeat_count = best->repeat_count; - ret = best->path; out: spin_unlock_irqrestore(&s->lock, flags); |