[PATCH] powerpc/code-patching: Perform hwsync in __patch_instruction() in case of failure
Michael Ellerman
mpe at ellerman.id.au
Fri Oct 27 20:59:56 AEDT 2023
On Sat, 07 Oct 2023 12:46:19 +0200, Christophe Leroy wrote:
> Commit c28c15b6d28a ("powerpc/code-patching: Use temporary mm for
> Radix MMU") added a hwsync for when __patch_instruction() fails,
> we results in a quite odd unbalanced logic.
>
> Instead of calling mb() when __patch_instruction() returns an error,
> call mb() in the __patch_instruction()'s error path directly.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/code-patching: Perform hwsync in __patch_instruction() in case of failure
https://git.kernel.org/powerpc/c/74726fda9fe306f848088ef73ec266cae0470d5b
cheers
More information about the Linuxppc-dev
mailing list