summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPaul Jackson <pj@sgi.com>2006-03-24 12:16:12 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-24 16:33:24 +0100
commitb2455396be35383c4eebc6745cc718b1dd9e23df (patch)
tree9ed4d43f1ca944c23372fad6554508f1747f5e2d /drivers
parent[PATCH] cpuset: don't need to mark cpuset_mems_generation atomic (diff)
downloadlinux-b2455396be35383c4eebc6745cc718b1dd9e23df.tar.xz
linux-b2455396be35383c4eebc6745cc718b1dd9e23df.zip
[PATCH] cpuset: memory_spread_slab drop useless PF_SPREAD_PAGE check
The hook in the slab cache allocation path to handle cpuset memory spreading for tasks in cpusets with 'memory_spread_slab' enabled has a modest performance bug. The hook calls into the memory spreading handler alternate_node_alloc() if either of 'memory_spread_slab' or 'memory_spread_page' is enabled, even though the handler does nothing (albeit harmlessly) for the page case Fix - drop PF_SPREAD_PAGE from the set of flag bits that are used to trigger a call to alternate_node_alloc(). The page case is handled by separate hooks -- see the calls conditioned on cpuset_do_page_mem_spread() in mm/filemap.c Signed-off-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions