mm: remove broken 'kzalloc' mempool
authorSage Weil <sage@newdream.net>
Tue, 22 Sep 2009 00:02:56 +0000 (17:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:35 +0000 (07:17 -0700)
commitbba78819548a59a52e60f0b259997bbd011164ae
tree1d788069848ba86906269d8eb8b1b13119260e5a
parentbbba809e96539672f775a3d70102657d05816a5b
mm: remove broken 'kzalloc' mempool

The kzalloc mempool zeros items when they are initially allocated, but
does not rezero used items that are returned to the pool.  Consequently
mempool_alloc()s may return non-zeroed memory.

Since there are/were only two in-tree users for
mempool_create_kzalloc_pool(), and 'fixing' this in a way that will
re-zero used (but not new) items before first use is non-trivial, just
remove it.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mempool.h
mm/mempool.c