Re: [RFC][PATCH v1 04/11] mm: madvise: call soft_offline_page() without MF_COUNT_INCREASED

2018-11-12 Thread Naoya Horiguchi
On Fri, Nov 09, 2018 at 04:16:55PM +0530, Anshuman Khandual wrote: > > > On 11/09/2018 12:17 PM, Naoya Horiguchi wrote: > > Currently madvise_inject_error() pins the target page when calling > > memory error handler, but it's not good because the refcount is just > > an artifact of error injector

Re: [RFC][PATCH v1 04/11] mm: madvise: call soft_offline_page() without MF_COUNT_INCREASED

2018-11-09 Thread Anshuman Khandual
On 11/09/2018 12:17 PM, Naoya Horiguchi wrote: > Currently madvise_inject_error() pins the target page when calling > memory error handler, but it's not good because the refcount is just > an artifact of error injector and mock nothing about hw error itself. > IOW, pinning the error page is part

[RFC][PATCH v1 04/11] mm: madvise: call soft_offline_page() without MF_COUNT_INCREASED

2018-11-08 Thread Naoya Horiguchi
Currently madvise_inject_error() pins the target page when calling memory error handler, but it's not good because the refcount is just an artifact of error injector and mock nothing about hw error itself. IOW, pinning the error page is part of error handler's task, so let's stop doing it. Signed-