diff --git a/include/linux/mm.h b/include/linux/mm.h index 1a67be54dc47..0304a5241875 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1613,12 +1613,6 @@ int generic_access_phys(struct vm_area_struct *vma, unsigned long addr, #ifdef CONFIG_SPECULATIVE_PAGE_FAULT 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)); /* * The reads never spins and preemption * disablement is not required.