]> git.baikalelectronics.ru Git - kernel.git/commit
SLUB: Fix sysfs refcounting
authorChristoph Lameter <clameter@sgi.com>
Tue, 8 Jan 2008 06:29:05 +0000 (22:29 -0800)
committerChristoph Lameter <clameter@sgi.com>
Mon, 4 Feb 2008 18:56:01 +0000 (10:56 -0800)
commit1b5066ad28ad048031352a443bba5be35fbea998
tree140f75b7a100c50b9d337b3a128dd34b5731780f
parentec397f06f16b77eee00684ff9d43b11f6b7160eb
SLUB: Fix sysfs refcounting

If CONFIG_SYSFS is set then free the kmem_cache structure when
sysfs tells us its okay.

Otherwise there is the danger (as pointed out by
Al Viro) that sysfs thinks the kobject still exists after
kmem_cache_destroy() removed it.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Reviewed-by: Pekka J Enberg <penberg@cs.helsinki.fi>
mm/slub.c