Commit d08e5b25 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] slab: drain_array fix

From: Philippe Elie <phil.el@wanadoo.fr>

If drain_array_locked() is passed the `force' command, it must go in and
empty the head array.
parent dc4ff5bf
......@@ -2355,7 +2355,7 @@ static void drain_array_locked(kmem_cache_t *cachep,
int tofree;
check_spinlock_acquired(cachep);
if (ac->touched) {
if (ac->touched && !force) {
ac->touched = 0;
} else if (ac->avail) {
tofree = force ? ac->avail : (ac->limit+4)/5;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment