]> git.baikalelectronics.ru Git - kernel.git/commit
revert "highmem: catch illegal nesting"
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 11 Sep 2007 22:24:10 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 12 Sep 2007 00:21:27 +0000 (17:21 -0700)
commitc07a4662fe5861a3d78c97a538865f3b7eeb2372
tree2d6b7445928c8a295214737a31260d36e9009795
parent837d7c6881306c3c3f54700e0048eb9d170c38e8
revert "highmem: catch illegal nesting"

Revert

commit 5fbd92f9ee4897ec4fbc4b7e1b2a85658880df0f
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/mm/highmem.c