From mboxrd@z Thu Jan 1 00:00:00 1970 From: Izik Eidus Subject: Re: [RFC][PATCH 2/5] add new exported function replace_page() Date: Wed, 23 Jan 2008 20:13:43 +0200 Message-ID: <479783D7.9070802@qumranet.com> References: <4794C40A.3020500@qumranet.com> <20080123130426.45dad2db@bree.surriel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org, yaniv-atKUWr5tajBWk0Htik3J/w@public.gmane.org, kvm-devel , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org To: Rik van Riel Return-path: In-Reply-To: <20080123130426.45dad2db-Fuq27k0DHcCSkoNiqTzCLQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Rik van Riel wrote: > On Mon, 21 Jan 2008 18:10:50 +0200 > Izik Eidus wrote: > > > > What prevents another CPU from freeing newpage while we run through > the start of replace_page() ? > > before calling to replace_page one have to call to get_page() and to do put_page() after it finished this what i am doing in ksm.c should i do it in diffrent way? -- woof. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/