From 52ce16182f37eff157a3b9f1a265218f1ce04edc Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 25 Feb 2009 22:49:33 +0000 Subject: [PATCH] b=14929 i=alexey.lyashkov i=alexander.zarochentsev do late push_ctxt so that pop_ctxt was never omitted --- lustre/mds/handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 940e4f8..101f3eb 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -432,7 +432,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; @@ -452,6 +451,8 @@ static int mds_destroy_export(struct obd_export *export) GOTO(out, rc = -ENOMEM); } + push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); + CFS_INIT_LIST_HEAD(&closing_list); spin_lock(&med->med_open_lock); while (!list_empty(&med->med_open_head)) { -- 1.8.3.1