Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b651cf02 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Fix racy invocation of fixup_busy_time via move_queued_task"

parents 6e04ed18 07359763
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6373,7 +6373,9 @@ static struct rq *move_queued_task(struct task_struct *p, int new_cpu)

	dequeue_task(rq, p, DEQUEUE_MIGRATING);
	p->on_rq = TASK_ON_RQ_MIGRATING;
	double_lock_balance(rq, cpu_rq(new_cpu));
	set_task_cpu(p, new_cpu);
	double_unlock_balance(rq, cpu_rq(new_cpu));
	raw_spin_unlock(&rq->lock);

	rq = cpu_rq(new_cpu);