nced later quite often in the form "if (sink->ops->...)".
This is a good idea. I will add this.
Actually, it already does. The free can only be called by the last=20
reference dropping the ref-count.
ld lead to a free() with refs>0?
A pi_get() after the ref could have already dropped to zero is broken at =
a higher layer. E.g. the caller of pi_get() has to ensure that there=20
are no races against the reference dropping to begin with. This is the=20
same as any reference-counted object (for instance, see get_task_struct()=
).
Thanks for the review, Matthias!
Regards,
-Greg