Re: [PATCH RFC 01/24] mm: gup: rename "nonblocking" to "locked" where proper

2019-01-21 Thread Mike Rapoport
On Mon, Jan 21, 2019 at 03:56:59PM +0800, Peter Xu wrote: > There's plenty of places around __get_user_pages() that has a parameter > "nonblocking" which does not really mean that "it won't block" (because > it can really block) but instead it shows whether the mmap_sem is > released by up_read()

[PATCH RFC 01/24] mm: gup: rename "nonblocking" to "locked" where proper

2019-01-20 Thread Peter Xu
There's plenty of places around __get_user_pages() that has a parameter "nonblocking" which does not really mean that "it won't block" (because it can really block) but instead it shows whether the mmap_sem is released by up_read() during the page fault handling mostly when VM_FAULT_RETRY is