Re: [PATCH] Add refcount type and refcount misuse debugging

From: Alexey Dobriyan
Date: Wed Dec 07 2011 - 18:14:22 EST


On Wed, Dec 7, 2011 at 9:22 PM, Will Drewry <wad@xxxxxxxxxxxx> wrote:
> Alexey Dobriyan <adobriyan <at> gmail.com> writes:
>
> [snip]
>
>> Enter _refcnt_t (non-atomic version), refcnt_t (atomic version) datatypes
>> and CONFIG_DEBUG_REFCNT config option.
>
> Is kref_t not appropriate to fill this niche?

Of course, no!
kref is atomic only, kref mandates separate destructor.
bug_on's should be added there, though.
--
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/