]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
uaccess: clarify that uaccess may only sleep if pagefaults are enabled
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 11 May 2015 15:52:08 +0000 (17:52 +0200)
committerMichal Sojka <sojka@merica.cz>
Sun, 13 Sep 2015 07:46:59 +0000 (09:46 +0200)
commit0fc02e54f57afea1fee0cd19407109f993ac0840
tree63b6e9004ffde6aa83efbd6a6224a3576738d972
parentaea1816d26f6bb3e9a87216d07f3ec452d98ce74
uaccess: clarify that uaccess may only sleep if pagefaults are enabled

In general, non-atomic variants of user access functions must not sleep
if pagefaults are disabled.

Let's update all relevant comments in uaccess code. This also reflects
the might_sleep() checks in might_fault().

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
12 files changed:
arch/avr32/include/asm/uaccess.h
arch/hexagon/include/asm/uaccess.h
arch/m32r/include/asm/uaccess.h
arch/microblaze/include/asm/uaccess.h
arch/mips/include/asm/uaccess.h
arch/s390/include/asm/uaccess.h
arch/score/include/asm/uaccess.h
arch/tile/include/asm/uaccess.h
arch/x86/include/asm/uaccess.h
arch/x86/include/asm/uaccess_32.h
arch/x86/lib/usercopy_32.c
lib/strnlen_user.c