commit | aab2207cf8d9c343b6b5f0e4d27e1732f8618d14 | [log] [tgz] |
---|---|---|
author | Christoph Lameter <clameter@engr.sgi.com> | Wed Mar 22 00:09:06 2006 -0800 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Wed Mar 22 07:54:05 2006 -0800 |
tree | deb851a556ac7d2339a5bc83985a33fe126321ee | |
parent | 35386e3b0f876bf194982f48f027af0c216499ce [diff] |
[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>