From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Jes Sorensen <jes@sgi.com>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, Hugh Dickins <hugh@veritas.com>,
bjorn_helgaas@hp.com, cotte@de.ibm.com
Subject: Re: [patch] do_no_pfn handler
Date: Tue, 04 Apr 2006 21:05:46 +1000 [thread overview]
Message-ID: <4432530A.70606@yahoo.com.au> (raw)
In-Reply-To: <yq01wwdppyc.fsf@jaguar.mkp.net>
Jes Sorensen wrote:
> Hi,
>
> Ingo Oeser suggested reorganizing the hangle_pte_fault code in a way
> that simplifies the code deciding which fault handler to call. It
> makes the call to ->nopfn and ->nopage a lot clearer.
>
Probably doesn't make much difference, but I'd rather do the nopage
check first, as that will obviously be the most common.
> It doesn't address Nick's suggestion as whether to recheck for someone
> else faulting it as I didn't see a consensus on that yet.
>
I first thought this might be a good idea because some archs have a
pretty heavy-weight set_pte_at (eg. powerpc, which is even heavier if
it is to replace an existing entry). This is not going to be very
common, but there have been cases where multiple threads all try to
fault in a particular page, which has caused performance problems.
Other than that, you never know what a nopfn handler will want to do,
so I think it is better to be consistent with other faults. Shouldn't
need much more than a `if (pte_none()) { /* do it */ }`.
> Updated patch attached.
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
next prev parent reply other threads:[~2006-04-05 9:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-03 11:32 [patch] do_no_pfn handler Jes Sorensen
2006-04-03 11:46 ` Nick Piggin
2006-04-03 14:49 ` Jes Sorensen
2006-04-04 10:58 ` Jes Sorensen
2006-04-04 11:05 ` Nick Piggin [this message]
2006-04-05 9:34 ` Jes Sorensen
2006-04-19 14:10 ` [patch - repost] " Jes Sorensen
2006-04-21 10:41 ` Nick Piggin
2006-04-24 7:55 ` Jes Sorensen
2006-04-11 14:29 ` [patch] " Jes Sorensen
2006-04-11 15:10 ` Linus Torvalds
2006-04-11 15:26 ` Carsten Otte
2006-04-11 15:35 ` Linus Torvalds
2006-04-11 20:03 ` Carsten Otte
2006-04-11 20:30 ` Linus Torvalds
2006-04-11 20:53 ` Carsten Otte
2006-04-12 9:09 ` Jes Sorensen
2006-04-12 9:16 ` Carsten Otte
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=4432530A.70606@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@osdl.org \
--cc=bjorn_helgaas@hp.com \
--cc=cotte@de.ibm.com \
--cc=hugh@veritas.com \
--cc=jes@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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