mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user