From: Akinobu Mita <mita@miraclelinux.com>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org,
Patrick Mochel <mochel@osdl.org>
Subject: Re: [patch 1/2] kref: detect kref_put() with unreferenced object
Date: Wed, 26 Apr 2006 10:17:19 +0800 [thread overview]
Message-ID: <20060426021719.GA5619@miraclelinux.com> (raw)
In-Reply-To: <20060426002628.GB24343@kroah.com>
> I really don't see how this is going to make it easier to debug
> anything. Remember, when a kref goes to 0, it is automatically freed.
> So any code that tries to use it afterward just dies a horrible death,
> if CONFIG_DEBUG_SLAB is enabled.
Thanks, I finally understood it is not needed as you said.
So I can just remove that BUG_ON()es for detecting zero atomic_t counter
while I replace atomic_t counters with kref.
next prev parent reply other threads:[~2006-04-26 2:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-25 8:21 [patch 0/2] kref debugging (retry) Akinobu Mita
2006-04-25 8:21 ` [patch 1/2] kref: detect kref_put() with unreferenced object Akinobu Mita
2006-04-26 0:26 ` Greg KH
2006-04-26 2:17 ` Akinobu Mita [this message]
2006-04-25 8:21 ` [patch 2/2] kref: kref debugging config option Akinobu Mita
2006-04-26 0:24 ` Greg KH
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=20060426021719.GA5619@miraclelinux.com \
--to=mita@miraclelinux.com \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.