From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id AF4493858D39 for ; Tue, 7 Mar 2023 09:57:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF4493858D39 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1678183049; bh=kC5vuz/3APMhwtlG2sUvXSAPaGXf9ldiD8tJggdVgWM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=gW4cBB1C2Lnl3ouC2OQtG8CQd1M1wXM50tEBwrBrNzRIyxB5z9pL3xMMcZtaTCDU3 lHrYXZwFZrIL3bF4+zqlDv/oZuk62ZlXixjtmFIMxbECao1jKyq5fGppSk5IjpUDso aSmR792Gf1kPf0773gjnE18a36wjSNjyojqkhCw8= Received: from [IPv6:240e:457:1130:24c0:882b:64fc:f6e9:11b3] (unknown [IPv6:240e:457:1130:24c0:882b:64fc:f6e9:11b3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id C19D365B0F; Tue, 7 Mar 2023 04:57:25 -0500 (EST) Message-ID: Subject: Re: [PATCH] nptl: pthread_rwlock_rdlock return in low priority From: Xi Ruoyao To: abush wang , Florian Weimer Cc: abushwang via Libc-alpha Date: Tue, 07 Mar 2023 17:57:19 +0800 In-Reply-To: References: <20230307035030.437573-1-abushwangs@gmail.com> <87r0u1q6rj.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 2023-03-07 at 17:06 +0800, abush wang via Libc-alpha wrote: > Actually, i can not send mail without any change by git sendmail, so I > add > a empty line. > This is just a mail for advisory Don't use git send-email then. It's a utility to send patches as mails, not ordinary mails. If you need a CLI tool for email use sendmail or something. >=20 > Florian Weimer =E4=BA=8E2023=E5=B9=B43=E6=9C=887=E6= =97=A5=E5=91=A8=E4=BA=8C 16:56=E5=86=99=E9=81=93=EF=BC=9A >=20 > > * abushwang via Libc-alpha: > >=20 > > > 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, > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 complexity.=C2=A0 */ > > > =C2=A0=C2=A0 if (__glibc_likely ((r & PTHREAD_RWLOCK_WRPHASE) =3D=3D = 0)) > > > =C2=A0=C2=A0=C2=A0=C2=A0 return 0; > > > + > > > =C2=A0=C2=A0 /* Otherwise, if we were in a write phase (states #6 or = #8), we > > > must > > wait > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for explicit hand-over of the read pha= se; the only exception > > > is if > > we > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 can start a read phase if there is no = primary writer > > > currently.=C2=A0 */ > >=20 > > This does not seem to be the right patch? > >=20 > > Thanks, > > Florian > >=20 > >=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University