[Openais] [PATCH]: openais/trunk: Send response immediately if lock status is NOT_QUEUED

Steven Dake sdake at redhat.com
Mon Jun 8 14:31:41 PDT 2009


looks good for commit

regards
-steve

On Tue, 2009-06-09 at 14:25 -0500, Ryan O'Hara wrote:
> If a lock request specifies the SA_LCK_LOCK_NO_QUEUE flag and the
> request is blocked, the lock is not queued and lock_status is set to
> SA_LCK_LOCK_NOT_QUEUED and a response should be sent to the library.
> 
> The existing code does not send a response to the library as
> needed. In short, the existing code could create a timer (and the call
> would block) whenever the status != SA_LCK_LOCK_GRANTED. This patch
> fixes the problem.
> 
> Thanks for Honzaf for finding this bug.
> 
> 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