From 0cc674f0c8999ea343573bce09678343038039b2 Mon Sep 17 00:00:00 2001 From: vs Date: Tue, 17 Feb 2009 20:00:15 +0000 Subject: [PATCH] b=18428 i=shadow,tappro,rread do not send requests to inactive targets --- lustre/lov/lov_obd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 3f1142d..a70a1b5 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -230,8 +230,13 @@ static int lov_notify(struct obd_device *obd, struct obd_device *watched, lov_getref(obd); for (i = 0; i < lov->desc.ld_tgt_count; i++) { - if (!lov->lov_tgts[i]) + + /* don't send sync event if target not + * connected/activated */ + if (!lov->lov_tgts[i] || + !lov->lov_tgts[i]->ltd_active) continue; + tgt_obd = class_exp2obd(lov->lov_tgts[i]->ltd_exp); rc = obd_notify_observer(obd, tgt_obd, ev, data); -- 1.8.3.1