Re: [RFC][PATCH] sched: Fix affine_move_task()

2021-02-16 Thread Valentin Schneider
On 13/02/21 13:50, Peter Zijlstra wrote: > When affine_move_task(p) is called on a running task @p, which is not > otherwise already changing affinity, we'll first set > p->migration_pending and then do: > >stop_one_cpu(cpu_of_rq(rq), migration_cpu_stop, &arg); > > This then gets us to migr

[RFC][PATCH] sched: Fix affine_move_task()

2021-02-13 Thread Peter Zijlstra
When affine_move_task(p) is called on a running task @p, which is not otherwise already changing affinity, we'll first set p->migration_pending and then do: stop_one_cpu(cpu_of_rq(rq), migration_cpu_stop, &arg); This then gets us to migration_cpu_stop() running on the CPU that was prev