[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yhdz3W3cnKtVmBYc@hirez.programming.kicks-ass.net>
Date: Thu, 24 Feb 2022 13:02:37 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Junru Shen <hhusjrsjr@...il.com>
Cc: Will Deacon <will@...nel.org>, Boqun Feng <boqun.feng@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H . Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] atomic: Put the fetching of the old value into the loop
when doing atomic CAS
On Thu, Feb 24, 2022 at 04:24:38PM +0800, Junru Shen wrote:
> Put the acquisition of the expected value inside the loop to prevent an infinite loop when it does not match.
NAK, this is broken.
Powered by blists - more mailing lists