Fix missing wake-ups in pthread_rwlock_rdlock.
authorTorvald Riegel <triegel@redhat.com>
Tue, 28 Apr 2015 21:24:36 +0000 (23:24 +0200)
committerTorvald Riegel <triegel@redhat.com>
Thu, 4 Jun 2015 13:34:30 +0000 (15:34 +0200)
commitb634486d57a14b53f1cfcf739e41ddf826e51977
tree65ad6788da14adc8effdd9d1b4236ac24af710d7
parent3c9c61febede148b79d8509e16588152d99b3774
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
NEWS
nptl/Makefile
nptl/pthread_rwlock_rdlock.c
nptl/pthread_rwlock_timedrdlock.c
nptl/pthread_rwlock_timedwrlock.c
nptl/pthread_rwlock_tryrdlock.c
nptl/pthread_rwlock_unlock.c
nptl/tst-rwlock16.c [new file with mode: 0644]