Re: [PATCH 05/12] sched_ext: Fix ops.running/stopping() pairing for proxy-exec donors

From: Tejun Heo

Date: Wed Jul 22 2026 - 19:36:29 EST


Hello, Andrea.

On Tue, Jul 21, 2026 at 08:31:26AM +0200, Andrea Righi wrote:
> SCX_TASK_SUB_INIT = 1 << 4, /* task being initialized for a sub sched */
> SCX_TASK_IMMED = 1 << 5, /* task is on local DSQ with %SCX_ENQ_IMMED */
>
> + SCX_TASK_RUN_TRACKED = 1 << 6, /* task is in an ops.running()/stopping() session */
> +
> /*
> * Bits 8 to 10 are used to carry task state:

Please drop the blank line above the new entry.

> + if (task_current(rq, p) &&
> + (p->scx.flags & SCX_TASK_RUN_TRACKED)) {

The condition fits on one line, ditto the one in put_prev_task_scx().

Thanks.

--
tejun