Skip to content
  • Mel Gorman's avatar
    page allocator: get the pageblock migratetype without disabling interrupts · 974709bd
    Mel Gorman authored
    
    
    Local interrupts are disabled when freeing pages to the PCP list.  Part of
    that free checks what the migratetype of the pageblock the page is in but
    it checks this with interrupts disabled and interupts should never be
    disabled longer than necessary.  This patch checks the pagetype with
    interrupts enabled with the impact that it is possible a page is freed to
    the wrong list when a pageblock changes type.  As that block is now
    already considered mixed from an anti-fragmentation perspective, it's not
    of vital importance.
    
    Signed-off-by: default avatarMel Gorman <mel@csn.ul.ie>
    Cc: Christoph Lameter <cl@linux-foundation.org>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Pekka Enberg <penberg@cs.helsinki.fi>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Nick Piggin <nickpiggin@yahoo.com.au>
    Cc: Dave Hansen <dave@linux.vnet.ibm.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    974709bd