diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2014-12-12 16:58:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 12:42:53 -0800 |
commit | dee2f8aaabccb64a67166bd8ab27d95cfbdc7704 (patch) | |
tree | c552c388c5b3a5c3e02f0d987dde9346b9b542be /Kbuild | |
parent | 061d7074e1eb4e663058e70d409a3cc00634232d (diff) | |
download | linux-stable-dee2f8aaabccb64a67166bd8ab27d95cfbdc7704.tar.gz linux-stable-dee2f8aaabccb64a67166bd8ab27d95cfbdc7704.tar.bz2 linux-stable-dee2f8aaabccb64a67166bd8ab27d95cfbdc7704.zip |
slub: fix cpuset check in get_any_partial
If we fail to allocate from the current node's stock, we look for free
objects on other nodes before calling the page allocator (see
get_any_partial). While checking other nodes we respect cpuset
constraints by calling cpuset_zone_allowed. We enforce hardwall check.
As a result, we will fallback to the page allocator even if there are some
pages cached on other nodes, but the current cpuset doesn't have them set.
However, the page allocator uses softwall check for kernel allocations,
so it may allocate from one of the other nodes in this case.
Therefore we should use softwall cpuset check in get_any_partial to
conform with the cpuset check in the page allocator.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Zefan Li <lizefan@huawei.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions