From: wangdi Date: Mon, 4 Dec 2006 08:30:03 +0000 (+0000) Subject: Branch:b_new_cmd X-Git-Tag: v1_8_0_110~486^2~46 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=550a8b3636c0cf8266d8a69eb97719447130e3a4;p=fs%2Flustre-release.git Branch:b_new_cmd txn_stop_cb should be clear after recovery thread stop --- diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index 8935545..dfb7c12 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -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;