Re: [PATCH] userfaultfd: replace ENOSPC with ESRCH in case mm has gone during copy/zeropage

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 09:08:17, Mike Rapoport wrote: > (adding Michal) Thanks > On Mon, Aug 07, 2017 at 04:12:25PM +0300, Mike Rapoport wrote: > > When the process exit races with outstanding mcopy_atomic, it would be > > better to return ESRCH error. When such race occurs the process and it's mm > >

Re: [PATCH] userfaultfd: replace ENOSPC with ESRCH in case mm has gone during copy/zeropage

2017-08-10 Thread Michal Hocko
On Tue 08-08-17 09:08:17, Mike Rapoport wrote: > (adding Michal) Thanks > On Mon, Aug 07, 2017 at 04:12:25PM +0300, Mike Rapoport wrote: > > When the process exit races with outstanding mcopy_atomic, it would be > > better to return ESRCH error. When such race occurs the process and it's mm > >

Re: [PATCH] userfaultfd: replace ENOSPC with ESRCH in case mm has gone during copy/zeropage

2017-08-08 Thread Mike Rapoport
(adding Michal) On Mon, Aug 07, 2017 at 04:12:25PM +0300, Mike Rapoport wrote: > When the process exit races with outstanding mcopy_atomic, it would be > better to return ESRCH error. When such race occurs the process and it's mm > are going away and returning "no such process" to the uffd

Re: [PATCH] userfaultfd: replace ENOSPC with ESRCH in case mm has gone during copy/zeropage

2017-08-08 Thread Mike Rapoport
(adding Michal) On Mon, Aug 07, 2017 at 04:12:25PM +0300, Mike Rapoport wrote: > When the process exit races with outstanding mcopy_atomic, it would be > better to return ESRCH error. When such race occurs the process and it's mm > are going away and returning "no such process" to the uffd