projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc4b0ca
)
mm: page_alloc: lookup pageblock migratetype with IRQs enabled during free
author
Mel Gorman
<
[email protected]
>
Wed, 4 Jun 2014 23:10:19 +0000
(16:10 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 4 Jun 2014 23:54:09 +0000
(16:54 -0700)
get_pageblock_migratetype() is called during free with IRQs disabled.
This is unnecessary and disables IRQs for longer than necessary.
Signed-off-by: Mel Gorman <
[email protected]
>
Acked-by: Rik van Riel <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Acked-by: Vlastimil Babka <
[email protected]
>
Cc: Jan Kara <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Theodore Ts'o <
[email protected]
>
Cc: "Paul E. McKenney" <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index 6cadc8678e2846ab73242c1e5e6375ebfeb3ace3..ce4d3716214ce5a027f7a49b323742ef8d6abade 100644
(file)
--- a/
mm/page_alloc.c
+++ b/
mm/page_alloc.c
@@
-774,9
+774,9
@@
static void __free_pages_ok(struct page *page, unsigned int order)
if (!free_pages_prepare(page, order))
return;
+ migratetype = get_pfnblock_migratetype(page, pfn);
local_irq_save(flags);
__count_vm_events(PGFREE, 1 << order);
- migratetype = get_pfnblock_migratetype(page, pfn);
set_freepage_migratetype(page, migratetype);
free_one_page(page_zone(page), page, pfn, order, migratetype);
local_irq_restore(flags);