Skip to content

Commit 5dd17be

Browse files
authored
DAOS-18495 object: use deep stack for IV involved ULT (#17422)
Use deep stack for IV involved ULTs. Signed-off-by: Niu Yawei <yawei.niu@hpe.com>
1 parent 6bb50dd commit 5dd17be

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/container/srv_container.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* (C) Copyright 2016-2024 Intel Corporation.
3-
* (C) Copyright 2025 Hewlett Packard Enterprise Development LP
3+
* (C) Copyright 2025-2026 Hewlett Packard Enterprise Development LP
44
*
55
* SPDX-License-Identifier: BSD-2-Clause-Patent
66
*/
@@ -2266,7 +2266,8 @@ cont_svc_eph_track_leader_start(struct cont_svc *svc)
22662266
D_ASSERT(svc->cs_cont_ephs_leader_req == NULL);
22672267
uuid_clear(anonym_uuid);
22682268
sched_req_attr_init(&attr, SCHED_REQ_ANONYM, &anonym_uuid);
2269-
svc->cs_cont_ephs_leader_req = sched_create_ult(&attr, cont_track_eph_leader_ult, svc, 0);
2269+
svc->cs_cont_ephs_leader_req =
2270+
sched_create_ult(&attr, cont_track_eph_leader_ult, svc, DSS_DEEP_STACK_SZ);
22702271
if (svc->cs_cont_ephs_leader_req == NULL) {
22712272
D_ERROR(DF_UUID" Failed to create EC leader eph ULT.\n",
22722273
DP_UUID(svc->cs_pool_uuid));

src/container/srv_target.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* (C) Copyright 2016-2024 Intel Corporation.
33
* (C) Copyright 2025 Google LLC
4-
* (C) Copyright 2025 Hewlett Packard Enterprise Development LP
4+
* (C) Copyright 2025-2026 Hewlett Packard Enterprise Development LP
55
*
66
* SPDX-License-Identifier: BSD-2-Clause-Patent
77
*/
@@ -2358,10 +2358,9 @@ ds_cont_tgt_snapshot_notify_handler(crt_rpc_t *rpc)
23582358
args.snap_opts = in->tsi_opts;
23592359
args.oit_oid = in->tsi_oit_oid;
23602360

2361-
out->tso_rc = ds_pool_thread_collective(in->tsi_pool_uuid,
2362-
PO_COMP_ST_NEW | PO_COMP_ST_DOWN |
2363-
PO_COMP_ST_DOWNOUT, cont_snap_notify_one,
2364-
&args, 0);
2361+
out->tso_rc = ds_pool_thread_collective(
2362+
in->tsi_pool_uuid, PO_COMP_ST_NEW | PO_COMP_ST_DOWN | PO_COMP_ST_DOWNOUT,
2363+
cont_snap_notify_one, &args, DSS_ULT_DEEP_STACK);
23652364
if (out->tso_rc != 0)
23662365
D_ERROR(DF_CONT": Snapshot notify failed: "DF_RC"\n",
23672366
DP_CONT(in->tsi_pool_uuid, in->tsi_cont_uuid),

src/object/srv_ec_aggregate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,8 @@ ec_agg_param_init(struct ds_cont_child *cont, struct agg_param *param)
26872687
agg_param->ap_credits_max = EC_AGG_ITERATION_MAX;
26882688
D_INIT_LIST_HEAD(&agg_param->ap_agg_entry.ae_cur_stripe.as_dextents);
26892689

2690-
rc = dss_ult_execute(ec_agg_init_ult, agg_param, NULL, NULL, DSS_XS_SYS, 0, 0);
2690+
rc = dss_ult_execute(ec_agg_init_ult, agg_param, NULL, NULL, DSS_XS_SYS, 0,
2691+
DSS_DEEP_STACK_SZ);
26912692
if (rc != 0)
26922693
D_GOTO(out, rc);
26932694

src/object/srv_obj.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,8 @@ obj_fetch_ec_agg_boundary(struct obj_io_context *ioc, daos_unit_oid_t *uoid)
14051405

14061406
arg.eab_pool = ioc->ioc_coc->sc_pool->spc_pool;
14071407
uuid_copy(arg.eab_co_uuid, ioc->ioc_coc->sc_uuid);
1408-
rc = dss_ult_execute(obj_fetch_ec_agg_boundary_ult, &arg, NULL, NULL, DSS_XS_SYS, 0, 0);
1408+
rc = dss_ult_execute(obj_fetch_ec_agg_boundary_ult, &arg, NULL, NULL, DSS_XS_SYS, 0,
1409+
DSS_DEEP_STACK_SZ);
14091410
if (rc) {
14101411
DL_ERROR(rc, DF_CONT ", " DF_UOID " fetch ec_agg_boundary failed.",
14111412
DP_CONT(ioc->ioc_coc->sc_pool_uuid, ioc->ioc_coc->sc_uuid),

0 commit comments

Comments
 (0)