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

Started by Denys Vlasenko on Feb 10, 2015

open the first message on its own page

Message details and related content
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();
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