From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Jan Beulich <jbeulich@novell.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH] x86: simplify page reference handling for partially (in-)validated pages
Date: Mon, 03 Nov 2008 07:58:19 +0000 [thread overview]
Message-ID: <C5345F9B.1EBCD%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <490EB987.76E4.0078.0@novell.com>
On 3/11/08 07:42, "Jan Beulich" <jbeulich@novell.com> wrote:
> As suggested by Keir, simplify general page reference management for
> preempted (partiall [in-]validated) pages: Reserve on reference that
> can be acquired without the risk of overflowing the reference count,
> thus allowing to have a simplified get_page() equivalent that cannot
> fail (but must be used with care).
>
> Doing this conversion pointed out a latent issue in the changes done
> previously in this area: The extra reference must be acquired before
> the 'normal' reference gets dropped, so the patch fixes this at once
> in both the alloc_page_type() and free_page_type() paths (it's really
> only the latter that failed to work with the change described above).
Yes, that makes the *_page_type() functions quite a bit clearer. Thanks!
-- Keir
prev parent reply other threads:[~2008-11-03 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 7:42 [PATCH] x86: simplify page reference handling for partially (in-)validated pages Jan Beulich
2008-11-03 7:58 ` Keir Fraser [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=C5345F9B.1EBCD%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.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.