linux_dsm_epyc7002/drivers/misc/sgi-xp
Johannes Weiner e97ca8e5b8 mm: fix GFP_THISNODE callers and clarify
GFP_THISNODE is for callers that implement their own clever fallback to
remote nodes.  It restricts the allocation to the specified node and
does not invoke reclaim, assuming that the caller will take care of it
when the fallback fails, e.g.  through a subsequent allocation request
without GFP_THISNODE set.

However, many current GFP_THISNODE users only want the node exclusive
aspect of the flag, without actually implementing their own fallback or
triggering reclaim if necessary.  This results in things like page
migration failing prematurely even when there is easily reclaimable
memory available, unless kswapd happens to be running already or a
concurrent allocation attempt triggers the necessary reclaim.

Convert all callsites that don't implement their own fallback strategy
to __GFP_THISNODE.  This restricts the allocation a single node too, but
at the same time allows the allocator to enter the slowpath, wake
kswapd, and invoke direct reclaim if necessary, to make the allocation
happen when memory is full.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Jan Stancek <jstancek@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-03-10 17:26:19 -07:00
..
Makefile sgi-xp: only build for ia64-sn2 when CONFIG_IA64_GENERIC specified 2008-10-30 11:38:46 -07:00
xp_main.c x86: uv: xpc needs to provide an abstraction for uv_gpa 2009-12-16 07:20:13 -08:00
xp_nofault.S [IA64] run some drivers/misc/sgi-xp through scripts/Lindent 2008-04-22 15:08:29 -07:00
xp_sn2.c x86: uv: xpc needs to provide an abstraction for uv_gpa 2009-12-16 07:20:13 -08:00
xp_uv.c x86: uv: update XPC to handle updated BIOS interface 2009-12-16 07:20:14 -08:00
xp.h Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
xpc_channel.c sgi-xp: open-code interruptible_sleep_on_timeout 2014-01-08 15:18:02 -08:00
xpc_main.c sgi: xpc: Convert use of typedef ctl_table to struct ctl_table 2013-06-14 10:19:25 +02:00
xpc_partition.c sgi-xpc: XPC fails to discover partitions with all nasids above 128 2010-11-25 06:50:40 +09:00
xpc_sn2.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xpc_uv.c mm: fix GFP_THISNODE callers and clarify 2014-03-10 17:26:19 -07:00
xpc.h sgi-xpc: clean up numerous globals 2009-04-13 15:04:33 -07:00
xpnet.c net: remove NETIF_F_NO_CSUM feature bit 2011-11-16 17:43:12 -05:00