Re: [PATCH] x86 spinlock: Fix memory corruption on completing completions

From
Denys Vlasenko <hidden>
Date
2015-02-10 13:20:46
Also in
kvm, lkml
On Tue, Feb 10, 2015 at 2:18 PM, Denys Vlasenko
[off-list ref] 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();
Thread (1 message) 1 message, 1 author, last reply 2015-02-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help