Re: Question about (or bug in?) the kobject implementation

From: Greg KH
Date: Fri Feb 27 2004 - 15:23:12 EST


On Fri, Feb 27, 2004 at 03:06:32PM -0500, Alan Stern wrote:
> On Fri, 27 Feb 2004, Greg KH wrote:
> > Seriously, once kobject_del() is called, you can't safely call
> > kobject_get() anymore on that object.
>
> Are you worried about the possibility of the refcount dropping to 0 and
> the cleanup starting but then kobject_get() increasing the refcount again?

Exactly, that is where the problem could happen.

thanks,

greg k-h
-
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/