• Andrew Morton's avatar
    revert "highmem: catch illegal nesting" · 4150d3f5
    Andrew Morton authored
    Revert
    
    	commit 656dad31
    	Author: Ingo Molnar <mingo@elte.hu>
    	Date:   Sat Feb 10 01:46:36 2007 -0800
    
    	[PATCH] highmem: catch illegal nesting
    
    	Catch illegally nested kmap_atomic()s even if the page that is mapped by
    	the 'inner' instance is from lowmem.
    
    	This avoids spuriously zapped kmap-atomic ptes and turns hard to find
    	crashes into clear asserts at the bug site.
    
    Problem is, a get_zeroed_page(GFP_KERNEL) from interrupt context will trigger
    this check if non-irq code on this CPU holds a KM_USER0 mapping.  But that
    get_zeroed_page() will never be altering the kmap slot anyway due to the
    GFP_KERNEL.
    
    Cc: Christoph Lameter <clameter@sgi.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    4150d3f5
highmem.c 2.75 KB