From b634486d57a14b53f1cfcf739e41ddf826e51977 Mon Sep 17 00:00:00 2001 From: Torvald Riegel Date: Tue, 28 Apr 2015 23:24:36 +0200 Subject: Fix missing wake-ups in pthread_rwlock_rdlock. This adds wake-ups that would be missing if assuming that for a non-writer-preferring rwlock, if one thread has acquired a rdlock and does not release it, another thread will eventually acquire a rdlock too despite concurrent write lock acquisition attempts. BZ 14958 is about supporting this assumption. Strictly speaking, this isn't a valid test case, but nonetheless worth supporting (see comment 7 of BZ 14958). --- ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 423ccea936..cd25f446a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2015-06-04 Torvald Riegel + + [BZ #14958] + * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing + wake-up. + (__pthread_rwlock_rdlock_slow): Likewise. + * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock): + Likewise. + * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock): + Likewise. + * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments. + * nptl/tst-rwlock16.c: New file. + * nptl/Makefile (tests): Add new test. + 2015-06-04 Torvald Riegel [BZ #18324] -- cgit 1.4.1