Whamcloud - gitweb
b=14929
authoranserper <anserper>
Wed, 25 Feb 2009 22:49:33 +0000 (22:49 +0000)
committeranserper <anserper>
Wed, 25 Feb 2009 22:49:33 +0000 (22:49 +0000)
i=alexey.lyashkov
i=alexander.zarochentsev

do late push_ctxt so that pop_ctxt was never omitted

lustre/mds/handler.c

index 940e4f8..101f3eb 100644 (file)
@@ -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)) {