From a77810b988cb7df0b7fc696969f9ad8d1d564d34 Mon Sep 17 00:00:00 2001 From: tappro Date: Wed, 3 Sep 2008 08:11:21 +0000 Subject: [PATCH] - export handling for VBR b:15391 i:rread, bzzz --- lustre/mds/handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 75fa969..ef26afa 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -427,9 +427,6 @@ static int mds_destroy_export(struct obd_export *export) if (obd_uuid_equals(&export->exp_client_uuid, &obd->obd_uuid)) RETURN(0); - push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); - /* Close any open files (which may also cause orphan unlinking). */ - lmm_sz = mds->mds_max_mdsize; OBD_ALLOC(lmm, lmm_sz); if (lmm == NULL) { @@ -447,6 +444,8 @@ static int mds_destroy_export(struct obd_export *export) GOTO(out, rc = -ENOMEM); } + push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); + /* Close any open files (which may also cause orphan unlinking). */ spin_lock(&med->med_open_lock); while (!list_empty(&med->med_open_head)) { struct list_head *tmp = med->med_open_head.next; @@ -2015,6 +2014,7 @@ static int mds_setup(struct obd_device *obd, obd_count len, void *buf) lprocfs_alloc_obd_stats(obd, LPROC_MDS_LAST) == 0) { /* Init private stats here */ mds_stats_counter_init(obd->obd_stats); + lprocfs_obd_attach_stale_exports(obd); obd->obd_proc_exports_entry = proc_mkdir("exports", obd->obd_proc_entry); } -- 1.8.3.1