From 1695d13798e7af7584996e5a265d22424928b171 Mon Sep 17 00:00:00 2001 From: tappro Date: Fri, 6 Oct 2006 14:37:57 +0000 Subject: [PATCH] stop recovery thread if device is finishing --- lustre/mdt/mdt_handler.c | 1 - lustre/mdt/mdt_recovery.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1