Skip to content
  • Mel Gorman's avatar
    slab: do ClearSlabPfmemalloc() for all pages of slab · 30c29bea
    Mel Gorman authored
    
    
    Right now, we call ClearSlabPfmemalloc() for first page of slab when we
    clear SlabPfmemalloc flag.  This is fine for most swap-over-network use
    cases as it is expected that order-0 pages are in use.  Unfortunately it
    is possible that that __ac_put_obj() checks SlabPfmemalloc on a tail
    page and while this is harmless, it is sloppy.  This patch ensures that
    the head page is always used.
    
    This problem was originally identified by Joonsoo Kim.
    
    [js1304@gmail.com: Original implementation and problem identification]
    Signed-off-by: default avatarMel Gorman <mgorman@suse.de>
    Cc: David Miller <davem@davemloft.net>
    Cc: Chuck Lever <chuck.lever@oracle.com>
    Cc: Joonsoo Kim <js1304@gmail.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    30c29bea