Messages in this thread | | | Subject | Re: [RFC] kref, a tiny, sane, reference count object | From | Andi Kleen <> | Date | Sat, 13 Mar 2004 14:06:56 +0100 |
| |
Greg KH <greg@kroah.com> writes:
> Comments are appreciated and welcomed.
I really don't see the advantage of this. Writing the same using atomic_inc/ atomic_dec_and_test() implicitely is basically as clean, and you will save the overhead of carrying a release() pointer around. And the "patterns" for that are easy enough that I doubt people will get it wrong.
-Andi
- 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/
| |