mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Why is cpuset_cpus_allowed_fallback() necessary?
@ 2012-11-26 22:32 Tejun Heo
  2012-11-27 18:41 ` Oleg Nesterov
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2012-11-26 22:32 UTC (permalink / raw)
  To: oleg; +Cc: peterz, linux-kernel, Paul Menage, containers, cgroups

Hello, guys.

I'm wondering why cpuset_cpus_allowed_fallback() is necessary.  This
is called from, e.g., try_to_wake_up()->select_task_rq() when none of
the cpus in ->cpus_allowed is useable.  The cpuset callback invokes
do_set_cpus_allowed() w/ the cpuset's cpus_allowed.  This was added by
the following commit,

  commit 9084bb8246ea935b98320554229e2f371f7f52fa
  Author: Oleg Nesterov <oleg@redhat.com>
  Date:   Mon Mar 15 10:10:27 2010 +0100


  sched: Make select_fallback_rq() cpuset friendly

  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.
  ....			  

The problem is, nothing's explaining what "the cpuset problems with
select_fallback_rq()" are.  Oleg, do you remember?  Why do we need
this?

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-02 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26 22:32 Why is cpuset_cpus_allowed_fallback() necessary? Tejun Heo
2012-11-27 18:41 ` Oleg Nesterov
2012-12-02 14:15   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®