diff options
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index fdbb116ee669..a3cad905f560 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1602,6 +1602,8 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, | |||
1602 | goto fail; | 1602 | goto fail; |
1603 | } | 1603 | } |
1604 | area->pages[i] = page; | 1604 | area->pages[i] = page; |
1605 | if (gfp_mask & __GFP_WAIT) | ||
1606 | cond_resched(); | ||
1605 | } | 1607 | } |
1606 | 1608 | ||
1607 | if (map_vm_area(area, prot, &pages)) | 1609 | if (map_vm_area(area, prot, &pages)) |