Cc: Greg KH <greg@...>, Dmitry Torokhov <dmitry.torokhov@...>, Linus Torvalds <torvalds@...>, Bj?rn Steinbrink <B.Steinbrink@...>, Arjan van de Ven <arjan@...>, Linux Kernel Mailing List <linux-kernel@...>, Johannes Berg <johannes@...>
On Mon, 2008-03-31 at 23:27 +0200, Jiri Kosina wrote:
Gone means, that if you remove a device from sysfs, you drop the
implicit reference to the parent device, as this is no longer needed.
You are expected to keep a ref to the parent object (same way as to any
other used object) if you need to access the data. Removed objects are
isolated now, which means that you just pin their data and not their
parents.
This is the expected behavior and makes it possible to resolve refcount
loops (parent ref's child) which could not be released with the implicit
parent ref that was only released on object cleanup.
Thanks,
Kay
--