[PATCH draft] mm: use pagefault_disable() to check for disabled pagefaults in the handler

2015-05-07 Thread David Hildenbrand
zip --- This will replacement patch nr 6 if we have an agreement :) So this is my suggestion to fix the irq context problem. We should not modify pagefault_disabled() to check for in_atomic(), otherwise we can't reuse it for might_fault()/might_sleep() checks. This also allows to clean it

[PATCH draft] mm: use pagefault_disable() to check for disabled pagefaults in the handler

2015-05-07 Thread David Hildenbrand
zip --- This will replacement patch nr 6 if we have an agreement :) So this is my suggestion to fix the irq context problem. We should not modify pagefault_disabled() to check for in_atomic(), otherwise we can't reuse it for might_fault()/might_sleep() checks. This also allows to clean it