Re: [HMM v13 03/18] mm/ZONE_DEVICE/free_hot_cold_page: catch ZONE_DEVICE pages

2016-11-21 Thread Anshuman Khandual
On 11/21/2016 06:20 PM, Jerome Glisse wrote: > On Mon, Nov 21, 2016 at 01:48:26PM +0530, Anshuman Khandual wrote: >> On 11/18/2016 11:48 PM, Jérôme Glisse wrote: >>> Catch page from ZONE_DEVICE in free_hot_cold_page(). This should never >>> happen as ZONE_DEVICE page must always have an elevated re

Re: [HMM v13 03/18] mm/ZONE_DEVICE/free_hot_cold_page: catch ZONE_DEVICE pages

2016-11-21 Thread Jerome Glisse
On Mon, Nov 21, 2016 at 01:48:26PM +0530, Anshuman Khandual wrote: > On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > > Catch page from ZONE_DEVICE in free_hot_cold_page(). This should never > > happen as ZONE_DEVICE page must always have an elevated refcount. > > > > This is to catch refcounting is

Re: [HMM v13 03/18] mm/ZONE_DEVICE/free_hot_cold_page: catch ZONE_DEVICE pages

2016-11-21 Thread Anshuman Khandual
On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > Catch page from ZONE_DEVICE in free_hot_cold_page(). This should never > happen as ZONE_DEVICE page must always have an elevated refcount. > > This is to catch refcounting issues in a sane way for ZONE_DEVICE pages. > > Signed-off-by: Jérôme Glisse

[HMM v13 03/18] mm/ZONE_DEVICE/free_hot_cold_page: catch ZONE_DEVICE pages

2016-11-18 Thread Jérôme Glisse
Catch page from ZONE_DEVICE in free_hot_cold_page(). This should never happen as ZONE_DEVICE page must always have an elevated refcount. This is to catch refcounting issues in a sane way for ZONE_DEVICE pages. Signed-off-by: Jérôme Glisse Cc: Dan Williams Cc: Ross Zwisler --- mm/page_alloc.c