From a21b3ffd99daadca3199b868747458ac0eac95f9 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Thu, 29 Dec 2022 12:45:56 -0800 Subject: [PATCH] ANDROID: remove unnecessary SPECULATIVE_PAGE_FAULT config dependency After recent fixes [1], speculative page fault walks are performed with disabled interrupts, therefore do not depend on ALLOC_SPLIT_PTLOCKS which would affect them if performed under RCU protection. Remove unnecessary config dependency. [1] 5fcb50b0559a ("ANDROID: mm: fix speculative walk which is unsafe under RCU") Bug: 253557903 Change-Id: Ia1c835c7b08419f8fce61fa4f7e6842fbf786229 Signed-off-by: Suren Baghdasaryan --- mm/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index b2e515748c93..0d4a75cdc6ac 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -958,8 +958,6 @@ config SPECULATIVE_PAGE_FAULT bool "Speculative page faults" default y depends on ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT && MMU && SMP && !NUMA - # split ptl lock can result in PTL destruction under RCU - depends on !ALLOC_SPLIT_PTLOCKS help Try to handle user space page faults without holding the mmap lock.