Re: [PATCH 04/24] sysfs: Normalize removing sysfs directories.

Kay Sievers
2009-05-30T14:00:23Z

On Sat, May 30, 2009 at 15:07, Eric W. Biederman <ebiederm@xmission.com> wrote:

> My take is simply that a correct user has to wait until no one else
> can find the kobject before calling kobject_del.  At which point
> races are impossible, and it doesn't matter if sysfs_mutex is held
> across the entire operation.

We have circular references between kobjects in some "advanced" users.
We can not break the circle without calling _del() on one of the
objects involved, but at that time all of the objects are still
referenced by another object. Only a _del() will break the circle, and
result in a release of the objects involved. Not sure how that would
behave with this change?

Thanks,
Kay