lkml.org 
[lkml]   [2008]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH [RT] 05/14] rearrange rt_spin_lock sleep

* Gregory Haskins <gregory.haskins.ml@gmail.com> wrote:

> My assumption is that the xchg() (inside update_current()) acts as an
> effective wmb(). If xchg() does not have this property, then this
> code is broken and patch 6/14 should also add a:

xchg() is a strong implicit memory barrier, it implies smp_mb().
(historic sidenote: it was the very first SMP primitive we had in
Linux.)

Ingo


\
 
 \ /
  Last update: 2008-02-22 14:39    [W:0.057 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site