Commit f161eedc71da293a9bcfcf3d7f6c1da070a61ef0
Committed by
Jiri Slaby
1 parent
3e7379c0f4
Exists in
ti-linux-3.12.y
and in
2 other branches
mm: page_alloc: lookup pageblock migratetype with IRQs enabled during free
commit cfc47a2803db42140167b92d991ef04018e162c7 upstream. 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 <mgorman@suse.de> Acked-by: Rik van Riel <riel@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Jan Kara <jack@suse.cz> Cc: Michal Hocko <mhocko@suse.cz> Cc: Hugh Dickins <hughd@google.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Theodore Ts'o <tytso@mit.edu> Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Mel Gorman <mgorman@suse.de> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
mm/page_alloc.c
... | ... | @@ -760,9 +760,9 @@ |
760 | 760 | if (!free_pages_prepare(page, order)) |
761 | 761 | return; |
762 | 762 | |
763 | + migratetype = get_pfnblock_migratetype(page, pfn); | |
763 | 764 | local_irq_save(flags); |
764 | 765 | __count_vm_events(PGFREE, 1 << order); |
765 | - migratetype = get_pfnblock_migratetype(page, pfn); | |
766 | 766 | set_freepage_migratetype(page, migratetype); |
767 | 767 | free_one_page(page_zone(page), page, pfn, order, migratetype); |
768 | 768 | local_irq_restore(flags); |