+ /* Object update service */
+ conf = (typeof(conf)) {
+ .psc_name = LUSTRE_MDT_NAME "_out",
+ .psc_watchdog_factor = MDT_SERVICE_WATCHDOG_FACTOR,
+ .psc_buf = {
+ .bc_nbufs = MDS_NBUFS,
+ .bc_buf_size = MDS_BUFSIZE,
+ .bc_req_max_size = MDS_MAXREQSIZE,
+ .bc_rep_max_size = MDS_MAXREPSIZE,
+ .bc_req_portal = MDS_MDS_PORTAL,
+ .bc_rep_portal = MDC_REPLY_PORTAL,
+ },
+ /*
+ * We'd like to have a mechanism to set this on a per-device
+ * basis, but alas...
+ */
+ .psc_thr = {
+ .tc_thr_name = LUSTRE_MDT_NAME "_out",
+ .tc_thr_factor = MDS_THR_FACTOR,
+ .tc_nthrs_init = MDS_NTHRS_INIT,
+ .tc_nthrs_base = MDS_NTHRS_BASE,
+ .tc_nthrs_max = MDS_NTHRS_MAX,
+ .tc_nthrs_user = mds_num_threads,
+ .tc_cpu_affinity = 1,
+ .tc_ctx_tags = LCT_MD_THREAD,
+ },
+ .psc_cpt = {
+ .cc_pattern = mds_num_cpts,
+ },
+ .psc_ops = {
+ .so_req_handler = mdt_out_handle,
+ .so_req_printer = target_print_req,
+ .so_hpreq_handler = NULL,
+ },
+ };
+ m->mds_out_service = ptlrpc_register_service(&conf, procfs_entry);
+ if (IS_ERR(m->mds_out_service)) {
+ rc = PTR_ERR(m->mds_out_service);
+ CERROR("failed to start out service: %d\n", rc);
+ m->mds_out_service = NULL;
+ GOTO(err_mds_svc, rc);
+ }
+