mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix allocation code not to stop at the first area of a PV that fits.
This spurious 'break' has been here since this code was first committed in June 2005 and stopped the algorithm behaving as described in the comment above it and rendered the variable 'already_found_one' useless.
This commit is contained in:
parent
af6dd44048
commit
4e09e6ca10
@ -1,5 +1,6 @@
|
||||
Version 2.02.58 -
|
||||
===================================
|
||||
Fix allocation code not to stop at the first area of a PV that fits.
|
||||
|
||||
Version 2.02.57 - 12th January 2010
|
||||
===================================
|
||||
|
@ -1114,8 +1114,6 @@ static int _find_parallel_space(struct alloc_handle *ah, alloc_policy_t alloc,
|
||||
}
|
||||
|
||||
areas[ix + ix_offset - 1] = pva;
|
||||
|
||||
goto next_pv;
|
||||
}
|
||||
next_pv:
|
||||
if (ix >= areas_size)
|
||||
|
Loading…
Reference in New Issue
Block a user