From: wangdi Date: Fri, 23 Sep 2005 13:47:31 +0000 (+0000) Subject: HEAD X-Git-Tag: v1_7_100~610 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e4488872e015ae85122e3095e4180c1dfd40c596 HEAD remove debug patch for test41 --- diff --git a/lustre/include/linux/obd_class.h b/lustre/include/linux/obd_class.h index bc14dc2..3c54d3c 100644 --- a/lustre/include/linux/obd_class.h +++ b/lustre/include/linux/obd_class.h @@ -90,7 +90,6 @@ struct config_llog_instance { 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, diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index fd1ee50..43655f8 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -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_exp = sbi->ll_md_exp; namelen = strlen(profile) + 20; /* -clean-######### */ OBD_ALLOC(name, namelen); if (name == NULL) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index bf1e038..8774a94 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -573,8 +573,7 @@ lov_add_obd(struct obd_device *obd, struct obd_uuid *uuidp, int index, int gen) } 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; @@ -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 (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; @@ -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); - 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: { @@ -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. */ -#if 0 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) { diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 8bc2991..ddc5958 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -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; - cfg.cfg_exp = NULL; + namelen = strlen(profile) + 20; /* -clean-######### */ OBD_ALLOC(name, namelen); if (name == NULL) diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 524b9fe..a0b582c 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -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; - 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);