linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	ak@suse.de, gregkh@suse.de, linux-mm@kvack.org, mel@skynet.ie,
	eric.whitney@hp.com
Subject: Re: [PATCH 2/2] Mem Policy: Fixup Shm and Interleave Policy Reference Counting - V2
Date: Fri, 12 Oct 2007 10:27:57 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0710121025020.8605@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <1192199714.7901.20.camel@localhost>

On Fri, 12 Oct 2007, Lee Schermerhorn wrote:

> In the meantime, however, if anyone tries to apply a policy [mbind] to a
> SHM_HUGETLB segment, they will BUG-out on the 2nd page fault with the
> current upstream [2.6.23] code.  Kind of serious I think...

And even after the fix they will have trouble with cpusets constraints 
that do not match the mpol bind set?

> > Nope. Its falling back to the task policy.
> 
> But, the get_policy() vm_op can overwrite 'pol' with a NULL return
> value.  This can happen when you have a real shmem segment with default
> policy == NULL/no policy.   See below:

Ah. The logical fix then is to define an additional temporary variable and
only overwrite the pol variable if a policy has been returned? That would 
be consistent with how the vma policies are handled?

--
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:[~2007-10-12 17:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-10 20:58 [PATCH/RFC 0/2] More Mempolicy Reference Counting Fixes Lee Schermerhorn
2007-10-10 20:58 ` [PATCH/RFC 1/2] Mem Policy: fix mempolicy usage in pci driver Lee Schermerhorn
2007-10-10 21:12   ` Christoph Lameter
2007-10-11 19:11     ` [PATCH " Lee Schermerhorn
2007-10-12  1:43       ` Christoph Lameter
2007-11-06 18:09         ` [PATCH ] " Lee Schermerhorn
2007-10-15 11:19       ` [PATCH 1/2] " Mel Gorman
2007-10-10 20:58 ` [PATCH/RFC 2/2] Mem Policy: Fixup Shm and Interleave Policy Reference Counting Lee Schermerhorn
2007-10-10 21:22   ` Christoph Lameter
2007-10-11 13:41     ` Lee Schermerhorn
2007-10-11 19:07     ` [PATCH 2/2] Mem Policy: Fixup Shm and Interleave Policy Reference Counting - V2 Lee Schermerhorn
2007-10-12  1:42       ` Christoph Lameter
2007-10-12 14:35         ` Lee Schermerhorn
2007-10-12 17:27           ` Christoph Lameter [this message]

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=Pine.LNX.4.64.0710121025020.8605@schroedinger.engr.sgi.com \
    --to=clameter@sgi.com \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=eric.whitney@hp.com \
    --cc=gregkh@suse.de \
    --cc=linux-mm@kvack.org \
    --cc=mel@skynet.ie \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).