From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4794C40A.3020500@qumranet.com> Date: Mon, 21 Jan 2008 18:10:50 +0200 From: Izik Eidus MIME-Version: 1.0 Subject: [RFC][PATCH 2/5] add new exported function replace_page() Content-Type: multipart/mixed; boundary="------------030700060709090302040201" Sender: owner-linux-mm@kvack.org Return-Path: To: kvm-devel , andrea@qumranet.com, avi@qumranet.com, dor.laor@qumranet.com, linux-mm@kvack.org, yaniv@qumranet.com List-ID: This is a multi-part message in MIME format. --------------030700060709090302040201 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -- woof. --------------030700060709090302040201 Content-Type: text/x-patch; name="0005-memory.c-add-new-exported-function-replace_page.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0005-memory.c-add-new-exported-function-replace_page.patch" --------------030700060709090302040201-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 23 Jan 2008 13:04:26 -0500 From: Rik van Riel Subject: Re: [kvm-devel] [RFC][PATCH 2/5] add new exported function replace_page() Message-ID: <20080123130426.45dad2db@bree.surriel.com> In-Reply-To: <4794C40A.3020500@qumranet.com> References: <4794C40A.3020500@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Izik Eidus Cc: kvm-devel , andrea@qumranet.com, avi@qumranet.com, dor.laor@qumranet.com, linux-mm@kvack.org, yaniv@qumranet.com List-ID: 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() ? -- All rights reversed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <479783D7.9070802@qumranet.com> Date: Wed, 23 Jan 2008 20:13:43 +0200 From: Izik Eidus MIME-Version: 1.0 Subject: Re: [kvm-devel] [RFC][PATCH 2/5] add new exported function replace_page() References: <4794C40A.3020500@qumranet.com> <20080123130426.45dad2db@bree.surriel.com> In-Reply-To: <20080123130426.45dad2db@bree.surriel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Rik van Riel Cc: kvm-devel , andrea@qumranet.com, avi@qumranet.com, dor.laor@qumranet.com, linux-mm@kvack.org, yaniv@qumranet.com List-ID: 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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org