Missed wakeup events in priority rw lock

Bug #1235285 reported by Laurynas Biveinis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
High
Laurynas Biveinis
5.6
Fix Released
High
Laurynas Biveinis

Bug Description

Two issues have been identified by stress testing the priority rw lock implementation (not enabled by default):

- high_priority_wait_ex_waiter was never set, meaning, that a sole high-priority X waiter coming after any S waits will not receive its wakeup event;
- Since low-priority S acquisitions were made to wait instead of acquire when a high-priority S lockers exist, it is possible to have waiters on S releases now. They need to be signaled.

Related branches

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-733

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.