1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Alasdair Kergon 2010-01-12 20:53:20 +00:00
parent 726355fef0
commit 109e6334b0
2 changed files with 1 additions and 2 deletions

View File

@ -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
===================================

View File

@ -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)