.bc_req_max_size = OUT_MAXREQSIZE,
.bc_rep_max_size = OUT_MAXREPSIZE,
.bc_req_portal = OUT_PORTAL,
- .bc_rep_portal = MDC_REPLY_PORTAL,
+ .bc_rep_portal = OSC_REPLY_PORTAL,
},
/*
* We'd like to have a mechanism to set this on a per-device
.tc_nthrs_max = MDS_NTHRS_MAX,
.tc_nthrs_user = mds_num_threads,
.tc_cpu_affinity = 1,
- .tc_ctx_tags = LCT_MD_THREAD,
+ .tc_ctx_tags = LCT_MD_THREAD |
+ LCT_DT_THREAD,
},
.psc_cpt = {
.cc_pattern = mds_num_cpts,
RETURN(NULL);
}
+LPROC_SEQ_FOPS_RO_TYPE(mds, uuid);
+
+static struct lprocfs_seq_vars lprocfs_mds_obd_vars[] = {
+ { "uuid", &mds_uuid_fops },
+ { 0 }
+};
+
static struct lu_device *mds_device_alloc(const struct lu_env *env,
struct lu_device_type *t,
struct lustre_cfg *cfg)
/* set this lu_device to obd, because error handling need it */
obd->obd_lu_dev = l;
- rc = lprocfs_obd_setup(obd, lprocfs_mds_obd_vars);
+ obd->obd_vars = lprocfs_mds_obd_vars;
+ rc = lprocfs_obd_setup(obd);
if (rc != 0) {
mds_device_free(env, l);
l = ERR_PTR(rc);
int mds_mod_init(void)
{
- int rc;
-
if (mdt_num_threads != 0 && mds_num_threads == 0) {
LCONSOLE_INFO("mdt_num_threads module parameter is deprecated, "
"use mds_num_threads instead or unset both for "
mds_num_threads = mdt_num_threads;
}
- rc = class_register_type(&mds_obd_device_ops, NULL,
- lprocfs_mds_module_vars, LUSTRE_MDS_NAME,
- &mds_device_type);
- return rc;
+ return class_register_type(&mds_obd_device_ops, NULL, true, NULL,
+ LUSTRE_MDS_NAME, &mds_device_type);
}
void mds_mod_exit(void)