Messages in this thread | | | Date | Wed, 26 Apr 2006 10:17:19 +0800 | From | Akinobu Mita <> | Subject | Re: [patch 1/2] kref: detect kref_put() with unreferenced object |
| |
> 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. - 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/
| |