Skip to content

Commit

Permalink
[IA64] re-enable preempt before page allocation for pgtable quicklist
Browse files Browse the repository at this point in the history
This is a fix to the pgtable_quicklist code.  There is a GFP_KERNEL
allocation in pgtable_quicklist_alloc(), which spews the usual warnings
if the kernel is under heavy VM pressure and the reclaim code is
invoked.  re-enable preempt before we allocate the new page.

This patch is against 2.6.12-rc2-mm2

Signed-off-by:  Martin Hicks <mort@sgi.com>
Signed-off-by:  Tony Luck <tony.luckintel.com>
  • Loading branch information
Martin Hicks authored and Tony Luck committed Apr 26, 2005
1 parent 605036c commit 2d29306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-ia64/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ static inline void *pgtable_quicklist_alloc(void)
pgtable_quicklist = (unsigned long *)(*ret);
ret[0] = 0;
--pgtable_quicklist_size;
preempt_enable();
} else {
preempt_enable();
ret = (unsigned long *)__get_free_page(GFP_KERNEL | __GFP_ZERO);
}

preempt_enable();

return ret;
}

Expand Down

0 comments on commit 2d29306

Please sign in to comment.