diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-11-05 11:31:58 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-05 11:37:12 -0800 |
commit | 05aa345034de6ae9c77fb93f6a796013641d57d5 (patch) | |
tree | 3522f909f91e14b86e8dc0cedcb8e17bc0901bbe /include/asm-powerpc | |
parent | aac9e28d2f3d3c1eacc4114d685864a2a6423b80 (diff) |
SLUB: Fix memory leak by not reusing cpu_slab
Fix the memory leak that may occur when we attempt to reuse a cpu_slab
that was allocated while we reenabled interrupts in order to be able to
grow a slab cache.
The per cpu freelist may contain objects and in that situation we may
overwrite the per cpu freelist pointer loosing objects. This only
occurs if we find that the concurrently allocated slab fits our
allocation needs.
If we simply always deactivate the slab then the freelist will be
properly reintegrated and the memory leak will go away.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-powerpc')
0 files changed, 0 insertions, 0 deletions