[PATCH RFC 06/15] mm: use pagefault_disabled() to check for disabled pagefaults

2015-05-06 Thread David Hildenbrand
Now that the pagefault disabled counter is in place, we can replace the in_atomic() checks by pagefault_disabled() checks. If a fault happens while in_atomic(), it can only be a bug in the code. Either a pagefault_disable() call is missing or the specific *in_atomic() variants of uaccess should

[PATCH RFC 06/15] mm: use pagefault_disabled() to check for disabled pagefaults

2015-05-06 Thread David Hildenbrand
Now that the pagefault disabled counter is in place, we can replace the in_atomic() checks by pagefault_disabled() checks. If a fault happens while in_atomic(), it can only be a bug in the code. Either a pagefault_disable() call is missing or the specific *in_atomic() variants of uaccess should