mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Christoph Lameter <clameter@sgi.com>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>,
	akpm@linux-foundation.org, ak@suse.de,
	linux-kernel@vger.kernel.org, tony.luck@intel.com,
	asit.k.mallick@intel.com
Subject: Re: x86_64: potential critical issue with quicklists and page table pages
Date: Fri, 21 Sep 2007 12:40:11 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.0.999.0709211235220.16478@woody.linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0709211221560.17698@schroedinger.engr.sgi.com>



On Fri, 21 Sep 2007, Christoph Lameter wrote:
> > The only way to fix it would be to integrate the quicklist stuff *with* 
> > the mmu_gather stuff, so that these kinds of implementation issues are 
> > explicitly shown in the relationship, instead of havign two "independent" 
> > pieces of code where one piece very subtly depends on the exact 
> > implementation of the other.
> 
> Right. But will that not mean that quicklists would have to be used on all 
> platforms in a generic way?

No. Each architecture can already choose how it does its own "mmu_gather".

*IF* the architecture uses a per-cpu variable for this, *THEN* the 
architecture could also embed a "quicklist" in that per-cpu variable, and 
make use of that. If you were to do it that way, it would all work fine. 

So for example, if you actually want to use quicklists in the "generic" 
TLB-gather implementation, you should replace the

	struct page *pages[FREE_PTE_NR];

entry in the "struct mmu_gather" with a set of quicklists instead. 

Or, alternatively, you could decide to not use the generic version at all, 
and instead do a per-architecture one that uses the quicklists.

The problem with that commit that I just reverted was that it mixed the 
two, but not completely. It still kept them separate.

		Linus

  reply	other threads:[~2007-09-21 19:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-21 18:07 Siddha, Suresh B
2007-09-21 18:18 ` Andi Kleen
2007-09-21 18:48 ` Linus Torvalds
2007-09-21 18:50   ` Christoph Lameter
2007-09-21 18:55     ` Linus Torvalds
2007-09-21 19:05       ` Linus Torvalds
2007-09-21 19:07         ` Christoph Lameter
2007-09-21 19:21           ` Linus Torvalds
2007-09-21 19:26             ` Christoph Lameter
2007-09-21 19:40               ` Linus Torvalds [this message]
2007-09-21 19:44                 ` Linus Torvalds
2007-09-21 19:56                 ` Christoph Lameter
2007-09-21 19:59                   ` Luck, Tony
2007-09-21 20:15                     ` Christoph Lameter
2007-09-24 21:27             ` Benjamin Herrenschmidt
2007-09-24 21:42               ` Christoph Lameter
2007-09-25  0:09                 ` Benjamin Herrenschmidt
2007-09-21 18:48 ` Christoph Lameter

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=alpine.LFD.0.999.0709211235220.16478@woody.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=asit.k.mallick@intel.com \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suresh.b.siddha@intel.com \
    --cc=tony.luck@intel.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 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®