Re: [patch for-4.12] mm, thp: remove cond_resched from __collapse_huge_page_copy

2017-06-23 Thread Michal Hocko
On Mon 19-06-17 13:43:11, David Rientjes wrote: > This is a partial revert of commit 338a16ba1549 ("mm, thp: copying user > pages must schedule on collapse") which added a cond_resched() to > __collapse_huge_page_copy(). > > On x86 with CONFIG_HIGHPTE, __collapse_huge_page_copy is called in

Re: [patch for-4.12] mm, thp: remove cond_resched from __collapse_huge_page_copy

2017-06-23 Thread Michal Hocko
On Mon 19-06-17 13:43:11, David Rientjes wrote: > This is a partial revert of commit 338a16ba1549 ("mm, thp: copying user > pages must schedule on collapse") which added a cond_resched() to > __collapse_huge_page_copy(). > > On x86 with CONFIG_HIGHPTE, __collapse_huge_page_copy is called in

[patch for-4.12] mm, thp: remove cond_resched from __collapse_huge_page_copy

2017-06-19 Thread David Rientjes
This is a partial revert of commit 338a16ba1549 ("mm, thp: copying user pages must schedule on collapse") which added a cond_resched() to __collapse_huge_page_copy(). On x86 with CONFIG_HIGHPTE, __collapse_huge_page_copy is called in atomic context and thus scheduling is not possible. This is

[patch for-4.12] mm, thp: remove cond_resched from __collapse_huge_page_copy

2017-06-19 Thread David Rientjes
This is a partial revert of commit 338a16ba1549 ("mm, thp: copying user pages must schedule on collapse") which added a cond_resched() to __collapse_huge_page_copy(). On x86 with CONFIG_HIGHPTE, __collapse_huge_page_copy is called in atomic context and thus scheduling is not possible. This is