From: tappro Date: Fri, 6 Oct 2006 14:37:57 +0000 (+0000) Subject: stop recovery thread if device is finishing X-Git-Tag: v1_8_0_110~486^2~675 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1695d13798e7af7584996e5a265d22424928b171;p=fs%2Flustre-release.git stop recovery thread if device is finishing --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 1deda7e..94f8790 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -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); diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index be393cf..4fc13fe 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -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);