summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-round-robin.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-02-17 21:29:17 -0500
committerMike Snitzer <snitzer@redhat.com>2016-02-22 22:34:42 -0500
commit90a4323ccfeaa2ef35a8f4c6443ee5106453d961 (patch)
tree515f390ae9369e93d0da20e23f9413adeb4173cf /drivers/md/dm-round-robin.c
parent9659f811446a67951127d4e81576204ffce9c86e (diff)
downloadlinux-stable-90a4323ccfeaa2ef35a8f4c6443ee5106453d961.tar.gz
linux-stable-90a4323ccfeaa2ef35a8f4c6443ee5106453d961.tar.bz2
linux-stable-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-round-robin.c')
-rw-r--r--drivers/md/dm-round-robin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/md/dm-round-robin.c b/drivers/md/dm-round-robin.c
index be9aa7f30b61..0558ab3d7235 100644
--- a/drivers/md/dm-round-robin.c
+++ b/drivers/md/dm-round-robin.c
@@ -178,8 +178,7 @@ static int rr_reinstate_path(struct path_selector *ps, struct dm_path *p)
return 0;
}
-static struct dm_path *rr_select_path(struct path_selector *ps,
- unsigned *repeat_count, size_t nr_bytes)
+static struct dm_path *rr_select_path(struct path_selector *ps, size_t nr_bytes)
{
unsigned long flags;
struct selector *s = ps->context;
@@ -189,7 +188,6 @@ static struct dm_path *rr_select_path(struct path_selector *ps,
if (!list_empty(&s->valid_paths)) {
pi = list_entry(s->valid_paths.next, struct path_info, list);
list_move_tail(&pi->list, &s->valid_paths);
- *repeat_count = pi->repeat_count;
}
spin_unlock_irqrestore(&s->lock, flags);