Revert "ANDROID: Make file-backed vma teardown synchronous"

This reverts commit fe25fc5375.

Reason for revert: test regressions
Bug: 232427425
Bug: 232421416
Change-Id: If7006fe6c3f1a55361099ef24927d4bc7c821b9c
Signed-off-by: Steve Muckle <smuckle@google.com>
This commit is contained in:
Steve Muckle
2022-05-12 18:46:36 +00:00
parent d1d3f4a801
commit 23ef56f65c

View File

@@ -402,12 +402,8 @@ void vm_area_free(struct vm_area_struct *vma)
free_anon_vma_name(vma);
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
if (atomic_read(&vma->vm_mm->mm_users) > 1) {
/* Only anonymous vmas can be torn down asynchronously */
if (!vma->vm_file) {
call_rcu(&vma->vm_rcu, __vm_area_free);
return;
}
synchronize_rcu();
call_rcu(&vma->vm_rcu, __vm_area_free);
return;
}
#endif
____vm_area_free(vma);