Whamcloud - gitweb
HEAD
authorwangdi <wangdi>
Fri, 23 Sep 2005 13:47:31 +0000 (13:47 +0000)
committerwangdi <wangdi>
Fri, 23 Sep 2005 13:47:31 +0000 (13:47 +0000)
remove debug patch for test41

lustre/include/linux/obd_class.h
lustre/llite/llite_lib.c
lustre/lov/lov_obd.c
lustre/mds/mds_lov.c
lustre/obdclass/obd_config.c

index bc14dc2..3c54d3c 100644 (file)
@@ -90,7 +90,6 @@ struct config_llog_instance {
         struct obd_uuid cfg_uuid;
         ptl_nid_t cfg_local_nid;
         int  cfg_flags;
         struct obd_uuid cfg_uuid;
         ptl_nid_t cfg_local_nid;
         int  cfg_flags;
-        struct obd_export *cfg_exp;
 };
 
 int class_config_process_llog(struct llog_ctxt *ctxt, char *name,
 };
 
 int class_config_process_llog(struct llog_ctxt *ctxt, char *name,
index fd1ee50..43655f8 100644 (file)
@@ -1066,7 +1066,6 @@ int ll_process_config_update(struct ll_sb_info *sbi, int clean)
         cfg.cfg_uuid = sbi->ll_sb_uuid;
         cfg.cfg_local_nid = lmd->lmd_local_nid;
         cfg.cfg_flags |= CFG_MODIFY_UUID_FL; 
         cfg.cfg_uuid = sbi->ll_sb_uuid;
         cfg.cfg_local_nid = lmd->lmd_local_nid;
         cfg.cfg_flags |= CFG_MODIFY_UUID_FL; 
-        cfg.cfg_exp = sbi->ll_md_exp;
         namelen = strlen(profile) + 20; /* -clean-######### */
         OBD_ALLOC(name, namelen);
         if (name == NULL)
         namelen = strlen(profile) + 20; /* -clean-######### */
         OBD_ALLOC(name, namelen);
         if (name == NULL)
index bf1e038..8774a94 100644 (file)
@@ -573,8 +573,7 @@ lov_add_obd(struct obd_device *obd, struct obd_uuid *uuidp, int index, int gen)
 }
 
 static int
 }
 
 static int
-lov_del_obd(struct obd_device *obd, struct obd_uuid *uuidp, int index, int gen,
-            struct obd_export *md_exp)
+lov_del_obd(struct obd_device *obd, struct obd_uuid *uuidp, int index, int gen)
 {
         struct lov_obd *lov = &obd->u.lov;
         struct lov_tgt_desc *tgt;
 {
         struct lov_obd *lov = &obd->u.lov;
         struct lov_tgt_desc *tgt;
@@ -615,13 +614,6 @@ lov_del_obd(struct obd_device *obd, struct obd_uuid *uuidp, int index, int gen,
                 if (rc != 0)
                         CWARN("obd_cancel_unused(osc): %d\n", rc);
 
                 if (rc != 0)
                         CWARN("obd_cancel_unused(osc): %d\n", rc);
 
-                if (md_exp) { 
-                        rc = obd_cancel_unused(md_exp, NULL,
-                                       LDLM_FL_CONFIG_CHANGE, NULL);
-                        if (rc != 0)
-                                CWARN("obd_cancel_unused(md): %d\n", rc);
-                }
-
                 osc_obd = class_exp2obd(tgt->ltd_exp);
                 if (osc_obd) {
                         osc_obd->obd_no_recov = 1;
                 osc_obd = class_exp2obd(tgt->ltd_exp);
                 if (osc_obd) {
                         osc_obd->obd_no_recov = 1;
@@ -686,10 +678,8 @@ static int lov_process_config(struct obd_device *obd, obd_count len, void *buf)
                         GOTO(out, rc = -EINVAL);
                 if (cmd == LCFG_LOV_ADD_OBD)
                         rc = lov_add_obd(obd, &obd_uuid, index, gen);
                         GOTO(out, rc = -EINVAL);
                 if (cmd == LCFG_LOV_ADD_OBD)
                         rc = lov_add_obd(obd, &obd_uuid, index, gen);
-                else {
-                        struct obd_export *md_exp = (struct obd_export *)lcfg->lcfg_nal;
-                        rc = lov_del_obd(obd, &obd_uuid, index, gen, md_exp);
-                }
+                else
+                        rc = lov_del_obd(obd, &obd_uuid, index, gen);
                 GOTO(out, rc);
         }
         default: {
                 GOTO(out, rc);
         }
         default: {
@@ -2155,11 +2145,10 @@ static int lov_get_info(struct obd_export *exp, __u32 keylen,
                 
                 /* This can happen if a deleted OST has been replaced
                  * in the lsm by the MDS.  */
                 
                 /* This can happen if a deleted OST has been replaced
                  * in the lsm by the MDS.  */
-#if 0
                 LDLM_ERROR(data->lock, "lock on inode without such object");
                 dump_lsm(D_ERROR, data->lsm);
                 portals_debug_dumpstack(NULL);
                 LDLM_ERROR(data->lock, "lock on inode without such object");
                 dump_lsm(D_ERROR, data->lsm);
                 portals_debug_dumpstack(NULL);
-#endif
+
                 RETURN(-ENXIO);
         } else if (keylen >= strlen("size_to_stripe") &&
                    strcmp(key, "size_to_stripe") == 0) {
                 RETURN(-ENXIO);
         } else if (keylen >= strlen("size_to_stripe") &&
                    strcmp(key, "size_to_stripe") == 0) {
index 8bc2991..ddc5958 100644 (file)
@@ -838,7 +838,7 @@ int mds_dt_update_config(struct obd_device *obd, int clean)
                 RETURN(0);
         cfg.cfg_instance = NULL;
         cfg.cfg_uuid = mds->mds_dt_uuid;
                 RETURN(0);
         cfg.cfg_instance = NULL;
         cfg.cfg_uuid = mds->mds_dt_uuid;
-        cfg.cfg_exp = NULL;
+
         namelen = strlen(profile) + 20; /* -clean-######### */
         OBD_ALLOC(name, namelen);
         if (name == NULL)
         namelen = strlen(profile) + 20; /* -clean-######### */
         OBD_ALLOC(name, namelen);
         if (name == NULL)
index 524b9fe..a0b582c 100644 (file)
@@ -665,12 +665,7 @@ static int class_config_parse_handler(struct llog_handle * handle,
                 lcfg_new->lcfg_flags = lcfg->lcfg_flags;
                 lcfg_new->lcfg_nid   = lcfg->lcfg_nid;
                 lcfg_new->lcfg_nal   = lcfg->lcfg_nal;
                 lcfg_new->lcfg_flags = lcfg->lcfg_flags;
                 lcfg_new->lcfg_nid   = lcfg->lcfg_nid;
                 lcfg_new->lcfg_nal   = lcfg->lcfg_nal;
-                if (cfg && (lcfg->lcfg_command == LCFG_LOV_DEL_OBD)) {
-                        if (cfg->cfg_exp)
-                                lcfg_new->lcfg_nal = (unsigned long)cfg->cfg_exp;
-                        else
-                                lcfg_new->lcfg_nal = 0;
-                } 
+
                 rc = class_process_config(lcfg_new);
                 lustre_cfg_free(lcfg_new);
 
                 rc = class_process_config(lcfg_new);
                 lustre_cfg_free(lcfg_new);