On Thu, Jan 23, 2025 at 04:55:35PM +0100, Petr Mladek wrote:
> On Wed 2025-01-22 16:56:31, Petr Mladek wrote:
> > Anyway, I am working on a POC which would allow to track
> > to-be-released processes. It would finish the transition only
> > when all the to-be-released processes already use the new code.
> > It won't allow to remove the disabled livepatch prematurely.

Can we just keep a list of exiting tasks, and use something like
for_each_executing_task() in the transition code?

Tasks-RCU is actually doing something like that already, see
exit_tasks_rcu_start() and exit_tasks_rcu_start_finish().  Maybe we
could use the same list.

-- 
Josh

Reply via email to