Re: [PATCH RESEND] mm/madvise: Clean up MADV_SOFT_OFFLINE and MADV_HWPOISON

2017-04-11 Thread Naoya Horiguchi
On Mon, Apr 10, 2017 at 02:17:01PM +0530, Anshuman Khandual wrote: > This cleans up handling MADV_SOFT_OFFLINE and MADV_HWPOISON called > through madvise() system call. > > * madvise_memory_failure() was misleading to accommodate handling of > both memory_failure() as well as soft_offline_page()

[PATCH RESEND] mm/madvise: Clean up MADV_SOFT_OFFLINE and MADV_HWPOISON

2017-04-10 Thread Anshuman Khandual
This cleans up handling MADV_SOFT_OFFLINE and MADV_HWPOISON called through madvise() system call. * madvise_memory_failure() was misleading to accommodate handling of both memory_failure() as well as soft_offline_page() functions. Basically it handles memory error injection from user space whi