sched/rt: Check to push the task away after its affinity was changed
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Xunlei Pang
(quoted diff) +1
-0@@ -1187,6 +1227,14 @@ int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) } do_set_cpus_allowed(p, new_mask); + /*
Review int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) · line 1240
Quoted 10 lines
(quoted diff) +7
-0+ * rq->lock might get released during __balance_callback(), + * but if there's any successful migrating of @p, task_cpu(p) + * will obviously be in the new_mask, as p->pi_lock is never + * released; Thus, subsequent cpumask_test_cpu() is true and + * will make it return safely in such case. + */ + __balance_callback(rq); /* Can the task run on the task's current CPU? If so, we're done */ if (cpumask_test_cpu(task_cpu(p), new_mask))
This will trigger the lockdep_pin stuff.