Hello, Tvrtko.

On Wed, Nov 04, 2026 at 09:52:24AM +0000, Tvrtko Ursulin wrote:
> -     if (wq->flags & WQ_RT)
> +     if (wq->flags & WQ_RT) {
>               attrs->prio = RT_PRIORITY;
> +             /* Strict CPU affinity for low latency execution. */
> +             attrs->affn_scope = WQ_AFFN_CPU;
> +             attrs->affn_strict = true;
> +     }

I don't think this needs to be hard-coded. If setting it through
workqueue attrs is too inconvenient, how about adding WQ_ flags so that
the affinity scope and strictness can be set easily when the workqueue
is created? The flags can be expanded to u64 to make room and
reorganized cleanly while at it.

Thanks.

--
tejun

Reply via email to