All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: rientjes@google.com, ak@suse.de, clameter@sgi.com, cpw@sgi.com,
	linux-mm@kvack.org
Subject: Re: Couple of questions about mempolicy rebinding
Date: Thu, 20 Mar 2008 02:11:40 -0500	[thread overview]
Message-ID: <20080320021140.93a235dc.pj@sgi.com> (raw)
In-Reply-To: <1205786207.5297.30.camel@localhost>

Lee wrote:
> 1) In __mpol_copy():  when the "current_cpuset_is_being_rebound", why do
> we rebind the old policy policy and then copy it to the new?  Seems like
> the old policy will get rebound in due time if, indeed, it needs to be
> rebound.  I don't see any usage now, where it won't, but this seems less
> general than just rebinding the new copy.  E.g., the old mempolicy being
> copied may be a context-free policy that shouln't be rebound.   I think
> we should at least add a comment to warn future callers.  Comments?

Sorry for the delay responding.

You're probably right; I'm not sure.  I have no record nor recollection
of why I rebound the old policy before copying, instead of rebinding the
new policy after copying.  I suspect this might be a case of "shoot
everything in sight, and hope I get them all."  Most code that I write
in that state of mind eventually gets fixed, to be more precise, once
someone has a better understanding.  Looks like this is that time.

I'd be more than comfortable you changing this to copy first and then
only rebind the new policy.

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

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2008-03-20  7:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200803122118.03942.ak@suse.de>
     [not found] ` <alpine.DEB.1.00.0803131219380.28673@chino.kir.corp.google.com>
     [not found]   ` <1205437802.5300.69.camel@localhost>
     [not found]     ` <alpine.DEB.1.00.0803131255150.32474@chino.kir.corp.google.com>
2008-03-17 20:36       ` Couple of questions about mempolicy rebinding Lee Schermerhorn
2008-03-20  7:11         ` Paul Jackson [this message]
2008-03-21 20:32         ` David Rientjes

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=20080320021140.93a235dc.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=ak@suse.de \
    --cc=clameter@sgi.com \
    --cc=cpw@sgi.com \
    --cc=linux-mm@kvack.org \
    --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.