commit | 151c602f79cb9154c3f3d83223cae355af463d6f | [log] [tgz] |
---|---|---|
author | Christoph Lameter <clameter@sgi.com> | Mon Jan 07 22:29:05 2008 -0800 |
committer | Christoph Lameter <clameter@sgi.com> | Mon Feb 04 10:56:01 2008 -0800 |
tree | 140f75b7a100c50b9d337b3a128dd34b5731780f | |
parent | e374d4835668a8c6aec7cefc0a44df69f9679017 [diff] |
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>