Commit 919ba2e9 authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] Fix slab batchcount limiting code

Spotted by Anton Blanchard: Our attempt to limit the interrupts-off time in
slab wasn't very effective.  #ifndef DEBUG is never true.
parent 163a3d84
......@@ -2064,7 +2064,7 @@ static void enable_cpucache (kmem_cache_t *cachep)
else
limit = 248;
#ifndef DEBUG
#if DEBUG
/* With debugging enabled, large batchcount lead to excessively
* long periods with disabled local interrupts. Limit the
* batchcount
......
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