lkml.org 
[lkml]   [2015]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] x86 spinlock: Fix memory corruption on completing completions
    On Tue, Feb 10, 2015 at 2:18 PM, Denys Vlasenko
    <vda.linux@googlemail.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();


    \
     
     \ /
      Last update: 2015-02-10 14:41    [W:4.146 / U:0.284 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site