Re: [PATCH v3 7/7] mm/gup: Allow VM_FAULT_RETRY for multiple times

2019-09-11 Thread Peter Xu
On Wed, Sep 11, 2019 at 10:47:59AM +0100, Linus Torvalds wrote: > On Wed, Sep 11, 2019 at 8:11 AM Peter Xu wrote: > > > > This is the gup counterpart of the change that allows the > > VM_FAULT_RETRY to happen for more than once. One thing to mention is > > that we must check the fatal signal

Re: [PATCH v3 7/7] mm/gup: Allow VM_FAULT_RETRY for multiple times

2019-09-11 Thread Linus Torvalds
On Wed, Sep 11, 2019 at 8:11 AM Peter Xu wrote: > > This is the gup counterpart of the change that allows the > VM_FAULT_RETRY to happen for more than once. One thing to mention is > that we must check the fatal signal here before retry because the GUP > can be interrupted by that, otherwise we

[PATCH v3 7/7] mm/gup: Allow VM_FAULT_RETRY for multiple times

2019-09-11 Thread Peter Xu
This is the gup counterpart of the change that allows the VM_FAULT_RETRY to happen for more than once. One thing to mention is that we must check the fatal signal here before retry because the GUP can be interrupted by that, otherwise we can loop forever. Signed-off-by: Peter Xu --- mm/gup.c