Re: [PATCH v2 4/6] s390/mm: Make PTC and UV call order consistent

From: Heiko Carstens

Date: Thu Apr 23 2026 - 06:59:16 EST


On Wed, Apr 15, 2026 at 05:01:22PM +0200, Alexander Gordeev wrote:
> In various code paths, page_table_check_pte_clear() is called
> before converting a secure page, while in others it is called
> after. Make this consistent and always perform the conversion
> after the PTC hook has been called. Also make all conversion‑
> eligibility condition checks look the same, and rework the one
> in ptep_get_and_clear_full() slightly.
>
> Acked-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx>
> Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>
> ---
> arch/s390/include/asm/pgtable.h | 39 +++++++++++++++------------------
> 1 file changed, 18 insertions(+), 21 deletions(-)

Why is this required for this series? It is anything but obvious to
me. If it is required please add some reasoning e.g. in the cover
letter or to the above changelog.