mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 06:03:24 +00:00
slab: fix alien cache handling
cache_free_alien must be called regardless if we use alien caches or not. cache_free_alien() will do the right thing if there are no alien caches available. Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Paul Mundt <lethal@linux-sh.org> Acked-by: Pekka J Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a210906c1b
commit
3cdc0ed0ce
@ -3539,7 +3539,7 @@ static inline void __cache_free(struct kmem_cache *cachep, void *objp)
|
||||
check_irq_off();
|
||||
objp = cache_free_debugcheck(cachep, objp, __builtin_return_address(0));
|
||||
|
||||
if (use_alien_caches && cache_free_alien(cachep, objp))
|
||||
if (cache_free_alien(cachep, objp))
|
||||
return;
|
||||
|
||||
if (likely(ac->avail < ac->limit)) {
|
||||
|
Loading…
Reference in New Issue
Block a user