On Thu, Dec 27, 2007 at 12:28:14PM -0800, Christoph Lameter wrote: > Hmmm.. If I separately allocate the kobject then I can no longer get to > the kmem_cache structure from the kobject. > > I need to add a second kobject_del to sysfs_slab_remove() to make sysfs > completely forget about the object? > > Probably should track down any remaining symlinks at that point and nuke > them too. Isnt there some way to convince sysfs to remove the symlinks > if the target vanishes? Don't bother with separate allocation. a) remove symlink when slab goes away b) instead of kfree() in slab removal do kobject_put() if you have sysfs stuff c) have ->release() of these kobjects do kfree() -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: SLUB sysfs support
- From: Christoph Lameter <[email protected]>
- Re: SLUB sysfs support
- References:
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Steven Rostedt <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Willy Tarreau <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Andi Kleen <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Theodore Tso <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Christoph Lameter <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Theodore Tso <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Christoph Lameter <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Al Viro <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- From: Christoph Lameter <[email protected]>
- SLUB sysfs support
- From: Christoph Lameter <[email protected]>
- Re: Major regression on hackbench with SLUB (more numbers)
- Prev by Date: Re: [PATCH] SH/Dreamcast - add support for GD-Rom device
- Next by Date: Re: SLUB sysfs support
- Previous by thread: SLUB sysfs support
- Next by thread: Re: SLUB sysfs support
- Index(es):