All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: David Rientjes <rientjes@google.com>
Cc: menage@google.com, miaox@cn.fujitsu.com,
	akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] cpusets: update tasks' cpus_allowed and mems_allowed after CPU/NODE offline/online
Date: Wed, 4 Jun 2008 14:25:40 -0500	[thread overview]
Message-ID: <20080604142540.6fa2bcc3.pj@sgi.com> (raw)
In-Reply-To: <alpine.DEB.1.10.0806041149560.21323@chino.kir.corp.google.com>

David wrote:
> That would only identify kthreads that have been created with a subsequent 
> call to set_cpus_allowed() or kthread_bind().
> 
> The PF_CPU_BOUND change targets only the latter since there are kthreads, 
> such as kstopmachine, that can continue to manipulate their cpus_allowed 
> during their lifetime.

Would your first sentence be more clearly written as:

> That would identify both kthreads that have been created with a subsequent 
> call to set_cpus_allowed() or kthread_bind().

Or do I misunderstand?

If I am reading you correctly, then would it work to have a check in the
cpuset code (rather than in the lower set_cpus_allowed() routine),
where that check refused to move tasks out of the root cpuset if they
were (1) kernel threads (mm NULL) and (2) had cpus_allowed that were a
strict subset of the root cpusets 'cpus' (the online cpus).

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.940.382.4214

  reply	other threads:[~2008-06-04 19:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04  2:05 [PATCH 2/2] cpusets: update tasks' cpus_allowed and mems_allowed after CPU/NODE offline/online Miao Xie
2008-06-04  9:30 ` Paul Menage
2008-06-04  9:58   ` Paul Menage
2008-06-04 17:22     ` Paul Jackson
2008-06-04 19:01       ` David Rientjes
2008-06-04 19:25         ` Paul Jackson [this message]
2008-06-04 19:33           ` David Rientjes
2008-06-04 19:42             ` Paul Jackson
2008-06-04 20:02               ` David Rientjes
2008-06-04 20:21                 ` Paul Jackson
  -- strict thread matches above, loose matches on Subject: below --
2008-06-02  8:33 Miao Xie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080604142540.6fa2bcc3.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    --cc=miaox@cn.fujitsu.com \
    --cc=rientjes@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.