[PATCH 48/53] WORKAROUND: md reports idle state during reshape start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



md reports reshape->idle->reshape states transition on reshape start, so reshape finalization is wrongly indicated.
Finalize reshape when we have any progress only,
When reshape is really started, idle state causes reshape finalization as usually.

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 monitor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/monitor.c b/monitor.c
index 2a92dee..59d9bd6 100644
--- a/monitor.c
+++ b/monitor.c
@@ -387,7 +387,8 @@ static int read_and_act(struct active_array *a)
 		/* finalize reshape detection
 		 */
 		if ((a->curr_action != reshape) &&
-		    (a->prev_action == reshape)) {
+		    (a->prev_action == reshape) &&
+		    (a->info.reshape_progress > 2)) {
 			/* set zero to allow for future rebuilds
 			 */
 			a->reshape_state = reshape_not_active;

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux