diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 3d04d42d8e1f0ce8fae641e66a3a75a56a4e946e..9ed4375300384a7b0f8bb6de4541a70045ca9848 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;