1 From: Vijayakumar Balasubramanian <vijayakumar@hp.com>
2 Subject: Path selector fix to dm-least-pending
5 We found that the lpp path selector had a small logical
6 problem causing this issue. Attached patch would solve the issue.
8 Signed-off-by: Hannes Reinecke <hare@suse.de>
10 diff --git a/drivers/md/dm-least-pending.c b/drivers/md/dm-least-pending.c
11 index a85bc90..c3ee548 100644
12 --- a/drivers/md/dm-least-pending.c
13 +++ b/drivers/md/dm-least-pending.c
14 @@ -194,7 +194,7 @@ static struct dm_path *lpp_select_path(struct path_selector *ps,
17 atomic_inc(&least_io_path->io_count);
18 - *repeat_count = pi->repeat_count;
19 + *repeat_count = least_io_path->repeat_count;
21 return least_io_path->path;