Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755408Ab0DWEzX (ORCPT ); Fri, 23 Apr 2010 00:55:23 -0400 Received: from mail-iw0-f178.google.com ([209.85.223.178]:42973 "EHLO mail-iw0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755259Ab0DWEzV (ORCPT ); Fri, 23 Apr 2010 00:55:21 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pgWFezxOxgPGbxhtuZC/0FoHDiGUoHb2JdYlFf0h7rMMBG9hqNlLQ3W/s06F8mL840 0crV7kgMe1nRqdXovyLeYSqybrN19lu+ofLmlF+9U/wy25eQs0M2cry3/5uGhL/iQu+2 ZxDLyz6nsbGHbBDJ1HUR9hfOsrUKcEaCdVmmI= MIME-Version: 1.0 In-Reply-To: References: <1271797276-31358-1-git-send-email-mel@csn.ul.ie> <20100421153421.GM30306@csn.ul.ie> <20100422092819.GR30306@csn.ul.ie> <20100422184621.0aaaeb5f.kamezawa.hiroyu@jp.fujitsu.com> <20100422193106.9ffad4ec.kamezawa.hiroyu@jp.fujitsu.com> <20100422195153.d91c1c9e.kamezawa.hiroyu@jp.fujitsu.com> <1271946226.2100.211.camel@barrios-desktop> Date: Fri, 23 Apr 2010 13:55:19 +0900 Message-ID: Subject: Re: [PATCH 04/14] mm,migration: Allow the migration of PageSwapCache pages From: Minchan Kim To: Christoph Lameter Cc: KAMEZAWA Hiroyuki , Mel Gorman , Andrew Morton , Andrea Arcangeli , Adam Litke , Avi Kivity , David Rientjes , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 29 Hi, Christoph. On Fri, Apr 23, 2010 at 12:14 AM, Christoph Lameter wrote: > On Thu, 22 Apr 2010, Minchan Kim wrote: > >> For further optimization, we can hold vma->adjust_lock if vma_address >> returns -EFAULT. But I hope we redesigns it without new locking. >> But I don't have good idea, now. :( > > You could make it atomic through the use of RCU. > > Create a new vma entry with the changed parameters and then atomically > switch to the new vma. > Problem is that you have some list_heads in there. That's a good idea if we can do _simply_. That's because there are many confusion anon_vma and vma handling nowadays. (http://thread.gmane.org/gmane.linux.kernel/969907) So I hope we solve the problem without rather complicated rcu locking if it isn't critical path. -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/