From: anserper Date: Wed, 25 Feb 2009 22:49:33 +0000 (+0000) Subject: b=14929 X-Git-Tag: GIT_EPOCH_B1_6~2^5~162 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=52ce16182f37eff157a3b9f1a265218f1ce04edc;p=fs%2Flustre-release.git b=14929 i=alexey.lyashkov i=alexander.zarochentsev do late push_ctxt so that pop_ctxt was never omitted --- 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)) {