[lkml]   [2003]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: frlock and barrier discussion
Andrea Arcangeli wrote:

>On Thu, Jan 30, 2003 at 07:20:33PM +0100, Manfred Spraul wrote:
>>Stephen wrote:
>>[snip - memory barrier for fr_write_begin]
>>>Using mb() is more paranoid than necessary.
>>What about the memory barrier in fr_read_begin?
>>If I understand the Intel documentation correctly, then i386 doesn't need
>>"Writes by a single processor are observed in the same order by all
>>I think "smp_read_barrier_depends()" (i.e. a nop for i386) is sufficient.
>I don't see what you mean, there is no dependency we can rely on between
>the read of the sequence number and the critical section reads, the
>critical section reads has nothing to do with the sequence number reads
>and the frlock itself.
You are right - "observed in the same order by all processors" only
means that the memory interface of the cpus see all writes in order, not
that instruction executed by the cpus will observe the writes in order.

That leaves ia64 with the acquire/release barriers.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.049 / U:3.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site