Whamcloud - gitweb
stop recovery thread if device is finishing
authortappro <tappro>
Fri, 6 Oct 2006 14:37:57 +0000 (14:37 +0000)
committertappro <tappro>
Fri, 6 Oct 2006 14:37:57 +0000 (14:37 +0000)
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_recovery.c

index 1deda7e..94f8790 100644 (file)
@@ -3129,7 +3129,6 @@ static void mdt_fini(const struct lu_env *env, struct mdt_device *m)
         struct lu_site    *ls = d->ld_site;
 
         ENTRY;
-        target_cleanup_recovery(m->mdt_md_dev.md_lu_dev.ld_obd);
 
         mdt_fs_cleanup(env, m);
 
index be393cf..4fc13fe 100644 (file)
@@ -976,6 +976,7 @@ void mdt_fs_cleanup(const struct lu_env *env, struct mdt_device *mdt)
         dt_txn_callback_del(mdt->mdt_bottom, &mdt->mdt_txn_cb);
 
         class_disconnect_exports(obd); /* cleans up client info too */
+        target_stop_recovery_thread(obd);
         target_cleanup_recovery(obd);
         if (mdt->mdt_last_rcvd)
                 lu_object_put(env, &mdt->mdt_last_rcvd->do_lu);