diff --git a/scheds/c/scx_flatcg.bpf.c b/scheds/c/scx_flatcg.bpf.c index 3e84cf7fa..fa3591d1e 100644 --- a/scheds/c/scx_flatcg.bpf.c +++ b/scheds/c/scx_flatcg.bpf.c @@ -258,8 +258,7 @@ static void cgrp_cap_budget(struct cgv_node *cgv_node, struct fcg_cgrp_ctx *cgc) * and thus can't be updated and repositioned. Instead, we collect the * vtime deltas separately and apply it asynchronously here. */ - delta = cgc->cvtime_delta; - __sync_fetch_and_sub(&cgc->cvtime_delta, delta); + delta = __sync_fetch_and_sub(&cgc->cvtime_delta, delta); cvtime = cgv_node->cvtime + delta; /*