Re: [PATCH] memorder.tex: correct the transformed code by compiler.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 11, 2022 at 11:20:49AM +0800, Patrick Yingxi Pan wrote:
> Hello!
> 
> I have added the missing READ_ONCE(). Please take a look. Thanks.
> 
> Signed-off-by: Patrick Pan <pyxchina92929@xxxxxxxxx>

Queued and pushed, thank you!

							Thanx, Paul

> ---
>  memorder/memorder.tex | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/memorder/memorder.tex b/memorder/memorder.tex
> index a0a87d0a..50ff2882 100644
> --- a/memorder/memorder.tex
> +++ b/memorder/memorder.tex
> @@ -2869,7 +2869,7 @@ An equals comparison on \clnref{equ} might lead
> the compiler to (incorrectly)
>  conclude that both pointers are equivalent, when in fact they carry
>  different dependencies.
>  This means that the compiler might well transform \clnref{pc} to instead
> -be \co{r2 = q->c}, which might well cause the value 44 to be loaded
> +be \co{r2 = READ_ONCE(q->c)}, which might well cause the value 44 to be loaded
>  instead of the expected value 144.
>  \end{fcvref}
> 
> 
> base-commit: 7f12a9358e220f3d0c3a0880d01bc283113d7a5b
> --



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux