x86: Add NMI types for kmap_atomic, fix
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 15 Jun 2009 14:46:05 +0000 (16:46 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 15:20:03 +0000 (17:20 +0200)
commit0990b1c65729012a63e0eeca93aaaafea4e9a064
tree316801609bc0e7b0f8e2497d770ea9731c3ba620
parente2eae0f5605b90a0838608043c21050b08b6dd95
x86: Add NMI types for kmap_atomic, fix

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: Peter 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: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/kmap_types.h
arch/x86/include/asm/pgtable_32.h