• Peter Zijlstra's avatar
    x86: Add NMI types for kmap_atomic, fix · 0990b1c6
    Peter Zijlstra authored
    I just realized this has a kmap_atomic bug in...
    
    The below would fix it - but it's complicating this code
    some more.
    
    Alternatively I would have to introduce something like
    pte_offset_map_irq() which would make the irq/nmi detection and leave
    the regular code paths alone, however that would mean either duplicating
    the gup_fast() pagewalk or passing down a pte function pointer, which
    would only duplicate the gup_pte_range() bit, neither is really
    attractive ...
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    CC: Nick Piggin <npiggin@suse.de>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    0990b1c6
pgtable_32.h 2.6 KB