[BZ 5240][PATCH] Pthread hang where there are still waiters when mutex is in "unlocked" state.

Martin Schwidefsky schwidefsky@de.ibm.com
Mon Nov 26 10:28:00 GMT 2007


On Sun, 2007-11-25 at 23:29 +0100, Martin Schwidefsky wrote:
> On Sun, 2007-11-25 at 16:39 +0100, Martin Schwidefsky wrote:
> > So there is a solution to this without a futex_wake call on the
> > timeout path. The analog C code using atomic_exchange_acq has to be
> > added.
> 
> The patch below should do the trick. At least it fixes the problem on
> s390. Please consider.

I should have done a cvs update.. The current code from Saturday looks
even better and fixes the issue. Sorry to be a pest but the same kind of
bug exists for __lll_robust_timedlock_wait. The fix there seems to be a
bit more complex.

-- 
blue skies,
  Martin.

"Reality continues to ruin my life." - Calvin.




More information about the Libc-alpha mailing list