> On Mar 12, 2018, at 2:00 PM, Alexei Starovoitov <a...@fb.com> wrote: > > On 3/12/18 1:39 PM, Song Liu wrote: >> + page = find_get_page(vma->vm_file->f_mapping, 0); > > did you test it with config_debug_atomic_sleep ? > it should have complained...
Yeah, I have CONFIG_DEBUG_ATOMIC_SLEEP=y. I think find_get_page() will not sleep. The variation find_get_page_flags() may sleep with flag FGP_CREAT. Song