arm-adjust_pte-use-pte_offset_map_nolock.patch removed from -mm tree
The quilt patch titled
Subject: arm: adjust_pte() use pte_offset_map_nolock()
has been removed from the -mm tree. Its filename was
arm-adjust_pte-use-pte_offset_map_nolock.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: arm: adjust_pte() use pte_offset_map_nolock()
Date: Tue, 11 Jul 2023 21:33:08 -0700 (PDT)
Instead of pte_lockptr(), use the recently added pte_offset_map_nolock() in adjust_pte(): because it gives the not-locked ptl for precisely that pte, which the caller can then safely lock; whereas pte_lockptr() is not so tightly coupled, because it dereferences the pmd pointer again.
---
arch/arm/mm/fault-armv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mm/fault-armv.c renamed from arch/arm/mm/fault-armv.c~arm-adjust_pte-use-pte_offset_map_nolock +1 -2
@@ -117,11 +117,10 @@ static int adjust_pte(struct vm_area_str* must use the nested version. This also means we need to * open-code the spin-locking. */ - pte =pte_offset_map (pmd, address); + pte =pte_offset_map_nolock (vma->vm_mm, pmd, address, &ptl);if (!pte)return 0 ; - ptl =pte_lockptr (vma->vm_mm, pmd);do_pte_lock (ptl); ret =do_adjust_pte (vma, address, pfn, pte);
_
Patches currently in -mm which might be from [email protected] are