Whamcloud - gitweb
- if MDS aborts recovery it disconnects all the exports and lmv_disconnect()
authoralex <alex>
Sun, 18 Jul 2004 05:41:57 +0000 (05:41 +0000)
committeralex <alex>
Sun, 18 Jul 2004 05:41:57 +0000 (05:41 +0000)
  is called. the last one didn't drop lmv->connected to 0 and this prevent
  subsequent lmv_connect() to work properly

lustre/lmv/lmv_obd.c

index 3d04d42..9ed4375 100644 (file)
@@ -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;