lkml.org 
[lkml]   [2013]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 2/2] mm: thp: give transparent hugepage code a separate copy_page
From
On Tue, Oct 29, 2013 at 6:16 AM, Dave Hansen <dave@sr71.net> wrote:
> +
> +void copy_high_order_page(struct page *newpage,
> + struct page *oldpage,
> + int order)
> +{
> + int i;
> +
> + might_sleep();
> + for (i = 0; i < (1<<order); i++) {
> + cond_resched();
> + copy_highpage(newpage + i, oldpage + i);
> + }
> +}

Can we make no use of might_sleep here with cond_resched in loop?


\
 
 \ /
  Last update: 2013-11-06 15:21    [W:0.170 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site