aboutsummaryrefslogtreecommitdiff
path: root/include/sound/util_mem.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2010-03-15 10:10:27 +0100
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-01-06 18:07:50 -0500
commit20b1d1ed393ddf313006bb5645417e55ef264a40 (patch)
treeea4fdd5cb6af0dbc40551bb5352e0cd926240e77 /include/sound/util_mem.h
parent16a938245f932bd0ccda8262bae52eb783684749 (diff)
sched: Make select_fallback_rq() cpuset friendly
commit 9084bb8246ea935b98320554229e2f371f7f52fa upstream. Introduce cpuset_cpus_allowed_fallback() helper to fix the cpuset problems with select_fallback_rq(). It can be called from any context and can't use any cpuset locks including task_lock(). It is called when the task doesn't have online cpus in ->cpus_allowed but ttwu/etc must be able to find a suitable cpu. I am not proud of this patch. Everything which needs such a fat comment can't be good even if correct. But I'd prefer to not change the locking rules in the code I hardly understand, and in any case I believe this simple change make the code much more correct compared to deadlocks we currently have. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20100315091027.GA9155@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include/sound/util_mem.h')
0 files changed, 0 insertions, 0 deletions