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

Heiko Carstens
2026-04-23T10:54:25Z

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@linux.ibm.com>
> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
> ---
> 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.