Re: [PATCH] rv: Adapt handle racing preemptions in nrp
From: Gabriele Monaco
Date: Fri Dec 04 2026 - 07:44:51 EST
On Fri, 2026-12-04 at 11:28 +0100, Andrea Righi wrote:
> Hi Gabriele,
>
> In addition to the issues reported by sashiko, maybe we should also add:
>
> Fixes: 53bc5c556b82 ("sched: Set TIF_NEED_RESCHED before calling
> __trace_set_need_resched()")
>
> That commit moved the tracepoint after setting TIF_NEED_RESCHED, making
> this inversion possible. Before it, the callback completed before the
> flag became visible.
>
Hi Andrea,
right, good point. That commit isn't really /broken/ on its own but it's
probably the simplest way this can get to stable streams, I'll also Cc them.
Thanks,
Gabriele