summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-service-time.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-02-18 03:29:17 +0100
committerMike Snitzer <snitzer@redhat.com>2016-02-23 04:34:42 +0100
commit90a4323ccfeaa2ef35a8f4c6443ee5106453d961 (patch)
tree515f390ae9369e93d0da20e23f9413adeb4173cf /drivers/md/dm-service-time.c
parentdm mpath: push path selector locking down to path selectors (diff)
downloadlinux-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 '')
-rw-r--r--drivers/md/dm-service-time.c5
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);