All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] FIX: Use successfully loaded metadata only
@ 2011-04-12 12:51 Adam Kwolek
  2011-04-12 12:51 ` [PATCH 2/2] imsm: FIX: Be more patient during loading matadata Adam Kwolek
  2011-04-14  7:50 ` [PATCH 1/2] FIX: Use successfully loaded metadata only NeilBrown
  0 siblings, 2 replies; 9+ messages in thread
From: Adam Kwolek @ 2011-04-12 12:51 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

Values greater than 0, means error. We exit from loop on error
with empty super-block pointer when sd pointer is valid.
This cannot be detected by check condition as error.
For sure we shouldn't go forward with error condition.
It leads to throwing exception with core file when metadata handler
wants to access non existing super-block.

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

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

diff --git a/Grow.c b/Grow.c
index a954cfd..768278f 100644
--- a/Grow.c
+++ b/Grow.c
@@ -2933,7 +2933,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape,
 			continue;
 		ok = st->ss->load_super(st, devfd, NULL);
 		close(devfd);
-		if (ok >= 0)
+		if (ok == 0)
 			break;
 	}
 	if (!sd) {


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-14  8:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 12:51 [PATCH 1/2] FIX: Use successfully loaded metadata only Adam Kwolek
2011-04-12 12:51 ` [PATCH 2/2] imsm: FIX: Be more patient during loading matadata Adam Kwolek
2011-04-13  0:44   ` Dan Williams
2011-04-13  6:40     ` Kwolek, Adam
2011-04-13 18:56       ` Dan Williams
2011-04-14  7:57         ` Kwolek, Adam
2011-04-14  8:08         ` NeilBrown
2011-04-14  8:36           ` Dan Williams
2011-04-14  7:50 ` [PATCH 1/2] FIX: Use successfully loaded metadata only NeilBrown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.