]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Vijayakumar Balasubramanian <vijayakumar@hp.com> |
2 | Subject: Path selector fix to dm-least-pending | |
3 | References: bnc#444199 | |
4 | ||
5 | We found that the lpp path selector had a small logical | |
6 | problem causing this issue. Attached patch would solve the issue. | |
7 | ||
8 | Signed-off-by: Hannes Reinecke <hare@suse.de> | |
9 | ||
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, | |
15 | return NULL; | |
16 | ||
17 | atomic_inc(&least_io_path->io_count); | |
18 | - *repeat_count = pi->repeat_count; | |
19 | + *repeat_count = least_io_path->repeat_count; | |
20 | ||
21 | return least_io_path->path; | |
22 | } |