]> git.baikalelectronics.ru Git - kernel.git/commit
slub: do not put a slab to cpu partial list when cpu_partial is 0
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Wed, 19 Jun 2013 06:33:55 +0000 (15:33 +0900)
committerPekka Enberg <penberg@kernel.org>
Sun, 7 Jul 2013 15:46:30 +0000 (18:46 +0300)
commitfe2878e20b2b6964cced6a0482187335f15d9c4b
tree6d6ad368eab1e67f2fd88ea92638e638c04e66d3
parent188d068ecda140076540c92a458b387f57e27610
slub: do not put a slab to cpu partial list when cpu_partial is 0

In free path, we don't check number of cpu_partial, so one slab can
be linked in cpu partial list even if cpu_partial is 0. To prevent this,
we should check number of cpu_partial in put_cpu_partial().

Acked-by: Christoph Lameeter <cl@linux.com>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c