Re: [patch] libitm: Fix wake-up of readers in futex-based serial lock.

2012-01-24 Thread Richard Henderson
On 01/25/2012 04:43 AM, Torvald Riegel wrote: > libitm: Fix wake-up of readers in futex-based serial lock. > > libitm/ > * config/linux/rwlock.cc (GTM::gtm_rwlock::write_unlock): Fix reader > wake-up. Ok. r~

[patch] libitm: Fix wake-up of readers in futex-based serial lock.

2012-01-24 Thread Torvald Riegel
This patch fixes a lost wake-up bug in the futex-based serial lock implementation. The previous code lacked some pieces of synchronization (a seq_cst barrier and resetting a flag that is checked by the respective futex_wait()), which led to those lost wake-ups when waking and waiting were racing a