mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dm raid: fix rs_is_recovering() to allow for lvextend
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
37f10be150
commit
345a6cdc25
1 changed files with 2 additions and 2 deletions
|
|
@ -372,7 +372,7 @@ static bool rs_is_reshapable(struct raid_set *rs)
|
|||
/* Return true, if raid set in @rs is recovering */
|
||||
static bool rs_is_recovering(struct raid_set *rs)
|
||||
{
|
||||
return rs->md.recovery_cp != MaxSector;
|
||||
return rs->md.recovery_cp < rs->dev[0].rdev.sectors;
|
||||
}
|
||||
|
||||
/* Return true, if raid set in @rs is reshaping */
|
||||
|
|
@ -3532,7 +3532,7 @@ static int raid_preresume(struct dm_target *ti)
|
|||
|
||||
rs_set_capacity(rs);
|
||||
|
||||
/* Check for any reshape request and region size change unless new raid set */
|
||||
/* Check for any reshape request unless new raid set */
|
||||
if (test_and_clear_bit(RT_FLAG_RESHAPE_RS, &rs->runtime_flags)) {
|
||||
/* Initiate a reshape. */
|
||||
mddev_lock_nointr(mddev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue