Skip to contentSkip to conversation

mm-introduce-lock_vma_under_rcu-to-be-used-from-arch-specific-code.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 6, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: introduce lock_vma_under_rcu to be used from arch-specific code
has been removed from the -mm tree. Its filename was
mm-introduce-lock_vma_under_rcu-to-be-used-from-arch-specific-code.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: Suren Baghdasaryan <[email protected]>
Subject: mm: introduce lock_vma_under_rcu to be used from arch-specific code
Date: Mon, 27 Feb 2023 09:36:22 -0800

Introduce lock_vma_under_rcu function to lookup and lock a VMA during page fault handling. When VMA is not found, can't be locked or changes after being locked, the function returns NULL. The lookup is performed under RCU protection to prevent the found VMA from being destroyed before the VMA lock is acquired. VMA lock statistics are updated according to the results. For now only anonymous VMAs can be searched this way. In other cases the function returns NULL.

---

 include/linux/mm.h |    3 ++
 mm/memory.c        |   46 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
include/linux/mm.h renamed from include/linux/mm.h~mm-introduce-lock_vma_under_rcu-to-be-used-from-arch-specific-code +3 -0
@@ -719,6 +719,9 @@ static inline void vma_mark_detached(str
 	vma->detached = detached;
 }
 
+struct vm_area_struct *lock_vma_under_rcu(struct mm_struct *mm,
+					  unsigned long address);
+
 #else /* CONFIG_PER_VMA_LOCK */
 
 static inline void vma_init_lock(struct vm_area_struct *vma) {}
mm/memory.c renamed from mm/memory.c~mm-introduce-lock_vma_under_rcu-to-be-used-from-arch-specific-code +46 -0

52 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are