Messages in this thread | | | Date | Mon, 26 Jul 2004 17:31:51 +0100 | From | Christoph Hellwig <> | Subject | Re: [patch] Add kref_read and kref_put_last primitives |
| |
On Mon, Jul 26, 2004 at 08:18:56PM +0530, Ravikiran G Thirumalai wrote: > Greg, > Here is a patch to add kref_read and kref_put_last. > These primitives were needed to change files_struct.f_count > refcounter to use kref api. > > kref_put_last is needed sometimes when a refcount might > have an unconventional release which needs more than > the refcounted object to process object release-- like in the > files_struct.f_count conversion patch at __aio_put_req(). > The following patch depends on kref shrinkage patches. > (which you have already included).
Why don't you simply use an atomic_t if that's what you seem to want?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |