]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/64s: Move serialize_against_pte_lookup() to hash_pgtable.c
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Mon, 9 Mar 2026 18:14:28 +0000 (23:44 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 17 Mar 2026 08:26:37 +0000 (13:56 +0530)
commitbf7c1497d2568ff803a0b0fc6728a1c06d11bf6e
tree984ad5f57c2dd411fd8930510599b56ea8a0689c
parent4a342f3e6f6848c816a661d8d7b10c75430598cf
powerpc/64s: Move serialize_against_pte_lookup() to hash_pgtable.c

Originally,
commit fa4531f753f1 ("powerpc/mm: Don't send IPI to all cpus on THP updates")
introduced serialize_against_pte_lookup() call for both Radix and Hash.

However below commit fixed the race with Radix
commit 70cbc3cc78a9 ("mm: gup: fix the fast GUP race against THP collapse")

And therefore following commit removed the
serialize_against_pte_lookup() call from radix_pgtable.c
commit bedf03416913
("powerpc/64s/radix: don't need to broadcast IPI for radix pmd collapse flush")

Now since serialize_against_pte_lookup() only gets called from
hash__pmdp_collapse_flush(), thus move the related functions to
hash_pgtable.c

Hence this patch:
- moves serialize_against_pte_lookup() from radix_pgtable.c to hash_pgtable.c
- removes the radix specific calls from do_serialize()
- renames do_serialize() to do_nothing().

There should not be any functionality change in this patch.

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/a73ebe800a9be257329507703779f822363f8b2f.1773078178.git.ritesh.list@gmail.com
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/mm/book3s64/hash_pgtable.c
arch/powerpc/mm/book3s64/pgtable.c