[Openais] [PATCH]: openais/trunk: Remove resource from cleanup list on close

Steven Dake sdake at redhat.com
Tue Jul 7 20:27:00 PDT 2009


looks good for merge

On Tue, 2009-07-07 at 22:25 -0500, Ryan O'Hara wrote:
> When calling saLckResourceClose, we must remove that resource from the
> cleanup list for the process calling saLckResourceClose. Without this,
> it is possible that when the process exits and calls lck_lib_exit_fn,
> the resource will have its reference count decremented again. This can
> result in a resource not being removed correctly, since reference
> count would be corrupt and would fail the the check we make before
> removing a resource.
> 
> Once the details of the problem (and test case) are sorted out, the
> fix is obvious: remove the resource from the cleanup list for every
> close.
> 
> Thanks for Honza for finding this and Steve for his help diagnosing
> the problem.
> 
> Ryan
> 
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list