]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit151c602f79cb9154c3f3d83223cae355af463d6f
tree140f75b7a100c50b9d337b3a128dd34b5731780f
parente374d4835668a8c6aec7cefc0a44df69f9679017
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