Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 6433bd75 authored by Alexander Winkowski's avatar Alexander Winkowski Committed by basamaryan
Browse files

Revert "ANDROID: mm: assert that mmap_lock is taken exclusively in vm_write_begin"



This reverts commit b144c416.

Change-Id: Iacc9012268a5e7aedfe38afd8766e84a042a30b5
Signed-off-by: default avatarAlexander Winkowski <dereference23@outlook.com>
parent 33c1fad3
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -1488,13 +1488,6 @@ static inline void unmap_shared_mapping_range(struct address_space *mapping,
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
static inline void vm_write_begin(struct vm_area_struct *vma)
static inline void vm_write_begin(struct vm_area_struct *vma)
{
{
	/*
	 * Isolated vma might be freed without exclusive mmap_lock but
	 * speculative page fault handler still needs to know it was changed.
	 */
	if (!RB_EMPTY_NODE(&vma->vm_rb))
		WARN_ON_ONCE(!rwsem_is_locked(&(vma->vm_mm)->mmap_sem));

	write_seqcount_begin(&vma->vm_sequence);
	write_seqcount_begin(&vma->vm_sequence);
}
}
static inline void vm_write_begin_nested(struct vm_area_struct *vma,
static inline void vm_write_begin_nested(struct vm_area_struct *vma,