Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5739d

[PATCH 19/34] imsm: Finalize reshape in metadata

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:38:08
Subsystem: the rest · Maintainer: Linus Torvalds

When reshape is finished monitor calls set_array_state() and finishes migration in metadata.
This change allows for finishing metadata migration on reshape end.

Signed-off-by: Adam Kwolek <redacted>
---

 super-intel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index f07665b..58ed702 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -4894,6 +4894,7 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
 				dev->vol.curr_migr_unit = __cpu_to_le32(unit);
 				super->updates_pending++;
 			}
+			return 0;
 		} else {
 			if (a->last_checkpoint == 0 && a->prev_action == reshape) {
 				/* for some reason we aborted the reshape.
@@ -4928,7 +4929,6 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
 				super->updates_pending++;
 			}				
 		}
-		return 0;
 	}
 
 	/* before we activate this array handle any missing disks */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help