lkml.org 
[lkml]   [2015]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 4/4] locking: Introduce smp_cond_acquire()
Date
Linus Torvalds <torvalds@linux-foundation.org> wrote:

> > + smp_read_barrier_depends(); /* ctrl */ \
> > + smp_rmb(); /* ctrl + rmb := acquire */ \

Doesn't smp_rmb() imply an smp_read_barrier_depends() anyway? In
memory-barriers.txt, it says:

Read memory barriers imply data dependency barriers, and so can
substitute for them.

David


\
 
 \ /
  Last update: 2015-11-02 22:01    [W:0.285 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site