From 356ed609a6ff79c2b2060f13ba68dbc0753347f1 Mon Sep 17 00:00:00 2001 From: shadow Date: Mon, 30 Jun 2008 15:34:14 +0000 Subject: [PATCH] don't panic with sparse OST's indexes. Branch b1_8 b=16014 i=tappro i=deen --- lustre/ChangeLog | 5 +++++ lustre/lov/lov_obd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index f4c25b4..714175f 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -25,6 +25,11 @@ tbd Sun Microsystems, Inc. For more information, please refer to bugzilla 13904. Severity : normal +Bugzilla : 16014 +Description: Kernel panic with find ost index. +Details : lov_obd have panic if some OST's have sparse indexes. + +Severity : normal Bugzilla : 14742 Frequency : rare Description: ASSERTION(CheckWriteback(page,cmd)) failed diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index d005bc5..d3d2626 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -2525,7 +2525,7 @@ static int lov_get_info(struct obd_export *exp, __u32 keylen, for(i = 0; i < lov->desc.ld_tgt_count; i++) { tgt = lov->lov_tgts[i]; - if (obd_uuid_equals(val, &tgt->ltd_uuid)) + if (tgt && obd_uuid_equals(val, &tgt->ltd_uuid)) GOTO(out, rc = i); } } -- 1.8.3.1