Messages in this thread | | | Date | Wed, 5 Jan 2011 07:56:19 -0800 | From | Greg KH <> | Subject | Re: [PATCH 1/2 v2] kref: add kref_test_and_get |
| |
On Wed, Jan 05, 2011 at 04:02:17PM +0100, Jerome Marchand wrote: > > Add kref_test_and_get() function, which atomically add a reference only if > refcount is not zero. This prevent to add a reference to an object that is > already being removed.
Again, no, I do not like this and will not accept this, sorry.
Please read the kref documentation for how to properly handle this, without this function.
greg k-h
| |