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

From: Kay Sievers
Date: Sat May 30 2009 - 10:00:26 EST


On Sat, May 30, 2009 at 15:07, Eric W. Biederman <ebiederm@xxxxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/