[PATCH RFC 02/15] mm, uaccess: trigger might_sleep() in might_fault() with disabled pagefaults

2015-05-06 Thread David Hildenbrand
Commit 662bbcb2747c ("mm, sched: Allow uaccess in atomic with pagefault_disable()") removed might_sleep() checks for all user access code (that uses might_fault()). The reason was to disable wrong "sleep in atomic" warnings in the following scenario: pagefault_disable() rc =

[PATCH RFC 02/15] mm, uaccess: trigger might_sleep() in might_fault() with disabled pagefaults

2015-05-06 Thread David Hildenbrand
Commit 662bbcb2747c (mm, sched: Allow uaccess in atomic with pagefault_disable()) removed might_sleep() checks for all user access code (that uses might_fault()). The reason was to disable wrong sleep in atomic warnings in the following scenario: pagefault_disable() rc = copy_to_user(...)