lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings()
    On Fri, May 08, 2020 at 04:40:36PM +0200, Joerg Roedel wrote:

    > Joerg Roedel (7):
    > mm: Add functions to track page directory modifications
    > mm/vmalloc: Track which page-table levels were modified
    > mm/ioremap: Track which page-table levels were modified
    > x86/mm/64: Implement arch_sync_kernel_mappings()
    > x86/mm/32: Implement arch_sync_kernel_mappings()
    > mm: Remove vmalloc_sync_(un)mappings()
    > x86/mm: Remove vmalloc faulting
    >
    > arch/x86/include/asm/pgtable-2level_types.h | 2 +
    > arch/x86/include/asm/pgtable-3level_types.h | 2 +
    > arch/x86/include/asm/pgtable_64_types.h | 2 +
    > arch/x86/include/asm/switch_to.h | 23 ---
    > arch/x86/kernel/setup_percpu.c | 6 +-
    > arch/x86/mm/fault.c | 176 +-------------------
    > arch/x86/mm/init_64.c | 5 +
    > arch/x86/mm/pti.c | 8 +-
    > drivers/acpi/apei/ghes.c | 6 -
    > include/asm-generic/5level-fixup.h | 5 +-
    > include/asm-generic/pgtable.h | 23 +++
    > include/linux/mm.h | 46 +++++
    > include/linux/vmalloc.h | 13 +-
    > kernel/notifier.c | 1 -
    > lib/ioremap.c | 46 +++--
    > mm/nommu.c | 12 --
    > mm/vmalloc.c | 109 +++++++-----
    > 17 files changed, 199 insertions(+), 286 deletions(-)

    The only concern I have is the pgd_lock lock hold times.

    By not doing on-demand faults anymore, and consistently calling
    sync_global_*(), we iterate that pgd_list thing much more often than
    before if I'm not mistaken.


    \
     
     \ /
      Last update: 2020-05-08 21:21    [W:2.526 / U:0.240 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site