From: alex Date: Wed, 16 Jun 2004 14:16:30 +0000 (+0000) Subject: - lmv_set_mdc_active() should skip NULL exports X-Git-Tag: 1.3.4~731 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=79a3ccaa5bc2e149e67493e932a340f53255b375;p=fs%2Flustre-release.git - lmv_set_mdc_active() should skip NULL exports actually, such an export could be connection back to owner mds --- diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 3fe8196..68d36f9 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -68,6 +68,9 @@ static int lmv_set_mdc_active(struct lmv_obd *lmv, struct obd_uuid *uuid, spin_lock(&lmv->lmv_lock); for (i = 0, tgt = lmv->tgts; i < lmv->desc.ld_tgt_count; i++, tgt++) { + if (tgt->ltd_exp == NULL) + continue; + CDEBUG(D_INFO, "lmv idx %d is %s conn "LPX64"\n", i, tgt->uuid.uuid, tgt->ltd_exp->exp_handle.h_cookie); if (strncmp(uuid->uuid, tgt->uuid.uuid, sizeof uuid->uuid) == 0)