From: Christoph Hellwig <hch@infradead.org>
To: Ravikiran G Thirumalai <kiran@in.ibm.com>
Cc: Greg KH <greg@kroah.com>, akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] Add kref_read and kref_put_last primitives
Date: Mon, 26 Jul 2004 17:31:51 +0100 [thread overview]
Message-ID: <20040726173151.A11637@infradead.org> (raw)
In-Reply-To: <20040726144856.GH1231@obelix.in.ibm.com>; from kiran@in.ibm.com on Mon, Jul 26, 2004 at 08:18:56PM +0530
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?
next prev parent reply other threads:[~2004-07-26 18:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-26 14:48 [patch] Add kref_read and kref_put_last primitives Ravikiran G Thirumalai
2004-07-26 14:56 ` Ravikiran G Thirumalai
2004-07-26 16:31 ` Christoph Hellwig [this message]
2004-07-27 7:09 ` Ravikiran G Thirumalai
2004-07-27 9:43 ` Christoph Hellwig
2004-08-02 20:08 ` Greg KH
2004-08-03 5:42 ` Dipankar Sarma
2004-08-03 6:51 ` Greg KH
2004-08-03 7:45 ` Dipankar Sarma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040726173151.A11637@infradead.org \
--to=hch@infradead.org \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=kiran@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox