From: alex Date: Sun, 18 Jul 2004 05:41:57 +0000 (+0000) Subject: - if MDS aborts recovery it disconnects all the exports and lmv_disconnect() X-Git-Tag: 1.3.4~587 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=128352dc778e2a68cc04d7032562285d1dab8262;p=fs%2Flustre-release.git - if MDS aborts recovery it disconnects all the exports and lmv_disconnect() is called. the last one didn't drop lmv->connected to 0 and this prevent subsequent lmv_connect() to work properly --- diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 3d04d42..9ed4375 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -335,6 +335,8 @@ static int lmv_disconnect(struct obd_export *exp, int flags) if (lmv->refcount != 0) goto out_local; + lmv->connected = 0; + for (i = 0; i < lmv->desc.ld_tgt_count; i++) { if (lmv->tgts[i].ltd_exp == NULL) continue;