Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-04-08 Thread Naoya Horiguchi
On Fri, Apr 05, 2013 at 04:33:32PM -0400, KOSAKI Motohiro wrote: > > diff --git v3.9-rc3.orig/mm/hugetlb.c v3.9-rc3/mm/hugetlb.c > > index 0a0be33..98a478e 100644 > > --- v3.9-rc3.orig/mm/hugetlb.c > > +++ v3.9-rc3/mm/hugetlb.c > > @@ -2819,7 +2819,7 @@ int hugetlb_fault(struct mm_struct *mm, struc

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-04-05 Thread KOSAKI Motohiro
> diff --git v3.9-rc3.orig/mm/hugetlb.c v3.9-rc3/mm/hugetlb.c > index 0a0be33..98a478e 100644 > --- v3.9-rc3.orig/mm/hugetlb.c > +++ v3.9-rc3/mm/hugetlb.c > @@ -2819,7 +2819,7 @@ int hugetlb_fault(struct mm_struct *mm, struct > vm_area_struct *vma, > if (ptep) { > entry = huge_

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-04-05 Thread KOSAKI Motohiro
> diff --git v3.9-rc3.orig/mm/hugetlb.c v3.9-rc3/mm/hugetlb.c > index 0a0be33..98a478e 100644 > --- v3.9-rc3.orig/mm/hugetlb.c > +++ v3.9-rc3/mm/hugetlb.c > @@ -2819,7 +2819,7 @@ int hugetlb_fault(struct mm_struct *mm, struct > vm_area_struct *vma, > if (ptep) { > entry = huge_

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-03-25 Thread Naoya Horiguchi
On Mon, Mar 25, 2013 at 11:13:40AM +0100, Michal Hocko wrote: > On Fri 22-03-13 16:23:46, 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 until the migration > > finishes. This is because pte_off

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-03-25 Thread Michal Hocko
On Fri 22-03-13 16:23:46, 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 until the migration > finishes. This is because pte_offset_map_lock() can't get a correct > migration entry for hugepage. Thi

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-03-23 Thread Rik van Riel
On 03/22/2013 04:23 PM, 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 until the migration finishes. This is because pte_offset_map_lock() can't get a correct migration entry for hugepage. This patch

[PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-03-22 Thread Naoya Horiguchi
When we have a page fault for the address which is backed by a hugepage under migration, the kernel can't wait correctly until the migration finishes. This is because pte_offset_map_lock() can't get a correct migration entry for hugepage. This patch adds migration_entry_wait_huge() to separate code