From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757161Ab3EaTaJ (ORCPT ); Fri, 31 May 2013 15:30:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754201Ab3EaTaF (ORCPT ); Fri, 31 May 2013 15:30:05 -0400 Date: Fri, 31 May 2013 12:30:03 -0700 From: Andrew Morton To: Naoya Horiguchi Cc: linux-mm@kvack.org, Mel Gorman , Andi Kleen , Michal Hocko , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] migrate: add migrate_entry_wait_huge() Message-Id: <20130531123003.1baf00c89bb25514de63c4f6@linux-foundation.org> In-Reply-To: <1369770771-8447-3-git-send-email-n-horiguchi@ah.jp.nec.com> References: <1369770771-8447-1-git-send-email-n-horiguchi@ah.jp.nec.com> <1369770771-8447-3-git-send-email-n-horiguchi@ah.jp.nec.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 May 2013 15:52:51 -0400 Naoya Horiguchi wrote: > When we have a page fault for the address which is backed by a hugepage > under migration, the kernel can't wait correctly and do busy looping on > hugepage fault until the migration finishes. > This is because pte_offset_map_lock() can't get a correct migration entry > or a correct page table lock for hugepage. > This patch introduces migration_entry_wait_huge() to solve this. > > Note that the caller, hugetlb_fault(), gets the pointer to the "leaf" > entry with huge_pte_offset() inside which all the arch-dependency of > the page table structure are. So migration_entry_wait_huge() and > __migration_entry_wait() are free from arch-dependency. > > ChangeLog v3: > - use huge_pte_lockptr > > ChangeLog v2: > - remove dup in migrate_entry_wait_huge() > > Signed-off-by: Naoya Horiguchi > Reviewed-by: Rik van Riel > Cc: stable@vger.kernel.org # 2.6.35 That changelog is not suitable for a -stable patch. People who maintain and utilize the stable trees need to know in some detail what is the end-user impact of the patch (or, equivalently, of the bug which the patch fixes).