Re: [PATCH -fixes v2] riscv: Fix fully ordered LR/SC xchg[8|16]() implementations

From: patchwork-bot+linux-riscv
Date: Thu May 30 2024 - 17:13:29 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:

On Thu, 30 May 2024 16:55:46 +0200 you wrote:
> The fully ordered versions of xchg[8|16]() using LR/SC lack the
> necessary memory barriers to guarantee the order.
>
> Fix this by matching what is already implemented in the fully ordered
> versions of cmpxchg() using LR/SC.
>
> Suggested-by: Andrea Parri <parri.andrea@xxxxxxxxx>
> Reported-by: Andrea Parri <parri.andrea@xxxxxxxxx>
> Closes: https://lore.kernel.org/linux-riscv/ZlYbupL5XgzgA0MX@andrea/T/#u
> Fixes: a8ed2b7a2c13 ("riscv/cmpxchg: Implement xchg for variables of size 1 and 2")
> Signed-off-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [-fixes,v2] riscv: Fix fully ordered LR/SC xchg[8|16]() implementations
https://git.kernel.org/riscv/c/1d84afaf0252

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html