Re: [PATCH] seqlock: Use while instead of if+goto in __read_seqcount_begin

From: Peter Zijlstra
Date: Wed Apr 15 2020 - 08:29:08 EST


On Tue, Apr 14, 2020 at 02:48:31PM +0100, Will Deacon wrote:
> Oh yeah, good thinking. Didn't spot that one, but it should work well as
> long as smp_cond_load_relaxed() always implies a control dependency (surely
> it has to?)

Well, yeah, but then you know as well as I do that compilers are dodgy
pieces of crap which are out to get you. Still, I too can't see how it
could mess this up.