+6
−21
Loading
For some reason migrate_disable_switch() was more complicated than it needs to be, resulting in mind bending locking of dubious quality. Recognise that migrate_disable_switch() must be called before a context switch, but any place before that switch is equally good. Since the current place results in troubled locking, simply move the thing before taking rq->lock. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Juri Lelli <juri.lelli@redhat.com> Acked-by:
Tejun Heo <tj@kernel.org> Acked-by:
Vincent Guittot <vincent.guittot@linaro.org>