From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946255Ab3FUW4f (ORCPT ); Fri, 21 Jun 2013 18:56:35 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:54159 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946172Ab3FUW4d (ORCPT ); Fri, 21 Jun 2013 18:56:33 -0400 Date: Sat, 22 Jun 2013 07:56:26 +0900 Message-ID: <8738sb9ip1.wl%satoru.takeuchi@gmail.com> From: Satoru Takeuchi To: Michal Hocko Cc: Satoru Takeuchi , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , stable@vger.kernel.org, Naoya Horiguchi , Rik van Riel , Wanpeng Li , Mel Gorman , Andi Kleen , KOSAKI Motohiro , Andrew Morton , Linus Torvalds Subject: Re: [ 29/48] mm: migration: add migrate_entry_wait_huge() In-Reply-To: <20130621124727.GG12424@dhcp22.suse.cz> References: <20130618161725.912524266@linuxfoundation.org> <20130618161730.095209184@linuxfoundation.org> <87a9ml3y8k.wl%satoru.takeuchi@gmail.com> <20130621124727.GG12424@dhcp22.suse.cz> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/23.4 Mule/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 21 Jun 2013 14:47:27 +0200, Michal Hocko wrote: > > On Thu 20-06-13 18:52:43, Satoru Takeuchi wrote: > > Hi Naoya, > > > > At Tue, 18 Jun 2013 09:17:55 -0700, > > Greg Kroah-Hartman wrote: > > > > > > From: Greg Kroah-Hartman > > > > > > 3.9-stable review patch. If anyone has any objections, please let me know. > > > > > > ------------------ > > > > > > From: Naoya Horiguchi > > > > > > commit 30dad30922ccc733cfdbfe232090cf674dc374dc upstream. > > > > > > 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. As a result, users who try > > > to kick hugepage migration (via soft offlining, for example) occasionally > > > experience long delay or soft lockup. > > > > > > 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. > > > > I suspect that this code doesn't work correctly on i686 box with CONFIG_HIGHPTE. > > If we call hugetlb_fault() -> migration_entry_wait_huge() -> __migration_entry_wait(), > > this function tries to kunmap pte, in this case pte is not-kmapped pmd, via pte_unmap_unlock(). > > If CONFIG_DEBUG_HIGHMEM is also enabled, it results in BUG_ON() at __kunmap_atomic(). > > > > Correct me if I'm wrong. > > I haven't checked the code closer but the patch doesn't change anything > regarding pte_unmap_unlock. The only thing that it touches is the > _locking_. So whether there ever was a problem with kmap or not this > patch doesn't change it. > > That being said, the patch is OK for the stable tree. OK, I see. This is a different problem from this patch. If I'll find a real problem with kmap, I'll report it as the different problem. Thanks, Satoru