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

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

Merge "sched: core: Fix possible hotplug race in set_cpus_allowed_ptr"

parents d195889e 90147169
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1218,7 +1218,6 @@ static int __set_cpus_allowed_ptr(struct task_struct *p,
	if (cpumask_test_cpu(task_cpu(p), &allowed_mask))
		goto out;

	dest_cpu = cpumask_any_and(cpu_valid_mask, new_mask);
	if (task_running(rq, p) || p->state == TASK_WAKING) {
		struct migration_arg arg = { p, dest_cpu };
		/* Need help from migration thread: drop lock and wait. */