[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK1hOcOC980BL7jT_PudPNMx1Vc2t-Li68K5hBnuFKaAZi2PfQ@mail.gmail.com>
Date: Tue, 10 Feb 2015 14:20:24 +0100
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Raghavendra K T <raghavendra.kt@...ux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Jeremy Fitzhardinge <jeremy@...p.org>,
Sasha Levin <sasha.levin@...cle.com>,
Davidlohr Bueso <dave@...olabs.net>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Peter Anvin <hpa@...or.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Paul McKenney <paulmck@...ux.vnet.ibm.com>,
Waiman Long <waiman.long@...com>,
Dave Jones <davej@...hat.com>, Oleg Nesterov <oleg@...hat.com>,
"the arch/x86 maintainers" <x86@...nel.org>,
Paul Gortmaker <paul.gortmaker@...driver.com>,
Andi Kleen <ak@...ux.intel.com>,
Jason Wang <jasowang@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
KVM list <kvm@...r.kernel.org>,
virtualization <virtualization@...ts.linux-foundation.org>,
xen-devel <xen-devel@...ts.xenproject.org>,
Rik van Riel <riel@...hat.com>,
Christian Borntraeger <borntraeger@...ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Andrey Ryabinin <a.ryabinin@...sung.com>
Subject: Re: [PATCH] x86 spinlock: Fix memory corruption on completing completions
On Tue, Feb 10, 2015 at 2:18 PM, Denys Vlasenko
<vda.linux@...glemail.com> wrote:
> while (1) {
> if (READ_ONCE(lock->tickets.head) != TICKET_TAIL(val))
> cpu_relax();
> }
Doh.... should be
while (READ_ONCE(lock->tickets.head) != TICKET_TAIL(val)
cpu_relax();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists