[PATCH] nptl: pthread_rwlock_rdlock return in low priority
Florian Weimer
fweimer@redhat.com
Tue Mar 7 08:56:32 GMT 2023
* abushwang via Libc-alpha:
> diff --git a/nptl/pthread_rwlock_common.c b/nptl/pthread_rwlock_common.c
> index 5266a00ed1..35b00fc14f 100644
> --- a/nptl/pthread_rwlock_common.c
> +++ b/nptl/pthread_rwlock_common.c
> @@ -389,6 +389,7 @@ __pthread_rwlock_rdlock_full64 (pthread_rwlock_t *rwlock, clockid_t clockid,
> complexity. */
> if (__glibc_likely ((r & PTHREAD_RWLOCK_WRPHASE) == 0))
> return 0;
> +
> /* Otherwise, if we were in a write phase (states #6 or #8), we must wait
> for explicit hand-over of the read phase; the only exception is if we
> can start a read phase if there is no primary writer currently. */
This does not seem to be the right patch?
Thanks,
Florian
More information about the Libc-alpha
mailing list