dm: multipath: fix rr_add_path order
PATCH 8/24 dm: multipath: fix rr_add_path order
From: Jonathan E Brassow <[email protected]>
When adding paths to the round-robin path selector, their order gets inverted, which is not desirable.
Fix by replacing list_add() with list_add_tail().
Signed-off-by Jonathan E Brassow <[email protected]>
Signed-off-by Alasdair G Kergon <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/md/dm-round-robin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-round-robin.c renamed from drivers/md/dm-round-robin.c~dm-multipath-fix-rr_add_path-order +1 -1
@@ -136,7 +136,7 @@ static int rr_add_path(struct path_selec path->pscontext = pi; -list_add (&pi->list, &s->valid_paths); +list_add_tail (&pi->list, &s->valid_paths);return 0 ; }
_