Re: AW: [PATCH RT RFC v4 1/8] add generalized priority-inheritance interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gregory Haskins
Date: Tuesday, August 19, 2008 - 1:34 am

Hi Matthias,

Matthias Behr wrote:
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RT RFC 0/7] Priority Inheritance enhancements, Gregory Haskins, (Fri Aug 1, 2:16 pm)
[PATCH RT RFC 5/7] rtmutex: use runtime init for rtmutexes, Gregory Haskins, (Fri Aug 1, 2:17 pm)
[PATCH RT RFC v2 0/8] Priority Inheritance enhancements, Gregory Haskins, (Fri Aug 15, 5:08 am)
[PATCH RT RFC v4 0/8] Priority Inheritance enhancements, Gregory Haskins, (Fri Aug 15, 1:28 pm)
Re: AW: [PATCH RT RFC v4 1/8] add generalized priority-inh ..., Gregory Haskins, (Tue Aug 19, 1:34 am)