From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215Ab0EGCPl (ORCPT ); Thu, 6 May 2010 22:15:41 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:51946 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719Ab0EGCPj (ORCPT ); Thu, 6 May 2010 22:15:39 -0400 Date: Thu, 6 May 2010 19:12:59 -0700 (PDT) From: Linus Torvalds To: KAMEZAWA Hiroyuki cc: Mel Gorman , Andrew Morton , Linux-MM , LKML , Minchan Kim , Christoph Lameter , Andrea Arcangeli , Rik van Riel , Peter Zijlstra Subject: Re: [PATCH 2/2] mm,migration: Fix race between shift_arg_pages and rmap_walk by guaranteeing rmap_walk finds PTEs created within the temporary stack In-Reply-To: <20100507105712.18fc90c4.kamezawa.hiroyu@jp.fujitsu.com> Message-ID: References: <1273188053-26029-1-git-send-email-mel@csn.ul.ie> <1273188053-26029-3-git-send-email-mel@csn.ul.ie> <20100507105712.18fc90c4.kamezawa.hiroyu@jp.fujitsu.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 May 2010, KAMEZAWA Hiroyuki wrote: > > IIUC, move_page_tables() may call "page table allocation" and it cannot be > done under spinlock. Bah. It only does a "alloc_new_pmd()", and we could easily move that out of the loop and pre-allocate the pmd's. If that's the only reason, then it's a really weak one, methinks. Linus