]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] slab: make drain_array more universal by adding more parameters
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 22 Mar 2006 08:09:06 +0000 (00:09 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:05 +0000 (07:54 -0800)
commitfdd7592467d6a967e6c036c57270395123c74def
treedeb851a556ac7d2339a5bc83985a33fe126321ee
parent1618fa4e136dac39d0e83c1b619e4dee921c7908
[PATCH] slab: make drain_array more universal by adding more parameters

And a parameter to drain_array to control the freeing of all objects and
then use drain_array() to replace instances of drain_array_locked with
drain_array.  Doing so will avoid taking locks in those locations if the
arrays are empty.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c