Re: [PATCH] powerpc/code-patching: Perform hwsync in __patch_instruction() in case of failure

From: Michael Ellerman
Date: Fri Oct 27 2023 - 06:08:30 EST


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