Re: [PATCH v3-resend 07/11] powerpc: uaccess s/might_sleep/might_fault/

2013-05-27 Thread Benjamin Herrenschmidt
On Sun, 2013-05-26 at 17:31 +0300, Michael S. Tsirkin wrote: > The only reason uaccess routines might sleep > is if they fault. Make this explicit. > > Arnd Bergmann suggested that the following code > if (!is_kernel_addr((unsigned long)__pu_addr)) > might_fault(); > can be fur

[PATCH v3-resend 07/11] powerpc: uaccess s/might_sleep/might_fault/

2013-05-26 Thread Michael S. Tsirkin
The only reason uaccess routines might sleep is if they fault. Make this explicit. Arnd Bergmann suggested that the following code if (!is_kernel_addr((unsigned long)__pu_addr)) might_fault(); can be further simplified by adding a version of might_fault that includes the ke