lkml.org 
[lkml]   [2010]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Document Linux's circular buffering capabilities
David Howells wrote:
> How about adding a bit:
>
> Note the use of ACCESS_ONCE() in both algorithms to read the opposition index.
> This prevents the compiler from discarding and reloading its cached value -
> -which some compilers will do across smp_read_barrier_depends().
> +which some compilers will do across smp_read_barrier_depends(). This isn't
> +strictly needed if you can be sure that the opposition index will _only_ be
> +used the once.

Yes, thanks. (The last "the" is superfluous.)
--
Stefan Richter
-=====-==-=- --== -====
http://arcgraph.de/sr/


\
 
 \ /
  Last update: 2010-03-15 14:45    [W:0.067 / U:3.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site