From: Keir Fraser Subject: Re: [PATCH] x86: fix preemptable page typehandling(v2) Date: Thu, 30 Oct 2008 17:27:05 +0000 Message-ID: References: <4909F703.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4909F703.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 30/10/08 17:03, "Jan Beulich" wrote: >> This would be basically a small cmpxchg() loop. Since it's only executed >> before setting PGT_partial we know that only one such special reference is >> needed per page and we could just make get_page() leave headroom of one >> reference. >> >> Simpler code and faster code? > > Yes - admittedly I had expected you to dislike a special casing approach like > this... I think it will overall make the code clearer. -- Keir