Re: [PATCH v2] sched: do not call __put_task_struct() on rt if pi_blocked_on is set

From: Sebastian Andrzej Siewior
Date: Thu Apr 10 2025 - 11:32:47 EST


On 2025-04-10 09:51:03 [+0200], Peter Zijlstra wrote:
> > I complained about this special RT case in put_task_struct() when it was
> > first got introduced. Couldn't we just just unconditionally do the RCU
> > put?
>
> Yeah, please make it simpler, not more complex.

Just so we clear: simpler as in everyone does call_rcu() or RT does
always call_rcu() and everyone else __put_task_struct()? I mean we would
end up with one call chain I am just not sure how expensive it gets for
!RT.

Sebastian