Whamcloud - gitweb
Branch:b_new_cmd
authorwangdi <wangdi>
Mon, 4 Dec 2006 08:30:03 +0000 (08:30 +0000)
committerwangdi <wangdi>
Mon, 4 Dec 2006 08:30:03 +0000 (08:30 +0000)
txn_stop_cb should be clear after recovery thread stop

lustre/mdt/mdt_recovery.c

index 8935545..dfb7c12 100644 (file)
@@ -976,12 +976,12 @@ void mdt_fs_cleanup(const struct lu_env *env, struct mdt_device *mdt)
 {
         struct obd_device *obd = mdt->mdt_md_dev.md_lu_dev.ld_obd;
 
-        /* Remove transaction callback */
-        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);
+        
+        /* Remove transaction callback */
+        dt_txn_callback_del(mdt->mdt_bottom, &mdt->mdt_txn_cb);
         if (mdt->mdt_last_rcvd)
                 lu_object_put(env, &mdt->mdt_last_rcvd->do_lu);
         mdt->mdt_last_rcvd = NULL;