Re: [PATCH v4] mm/swap: Fix release_pages() when releasing devmap pages

2019-07-02 Thread Jason Gunthorpe
On Wed, Jun 05, 2019 at 02:49:22PM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > release_pages() is an optimized version of a loop around put_page(). > Unfortunately for devmap pages the logic is not entirely correct in > release_pages(). This is because device pages can be more than t

Re: [PATCH v4] mm/swap: Fix release_pages() when releasing devmap pages

2019-06-21 Thread Michal Hocko
Sorry for a late reply. On Wed 05-06-19 14:49:22, ira.we...@intel.com wrote: > From: Ira Weiny > > release_pages() is an optimized version of a loop around put_page(). > Unfortunately for devmap pages the logic is not entirely correct in > release_pages(). This is because device pages can be mo

[PATCH v4] mm/swap: Fix release_pages() when releasing devmap pages

2019-06-05 Thread ira . weiny
From: Ira Weiny release_pages() is an optimized version of a loop around put_page(). Unfortunately for devmap pages the logic is not entirely correct in release_pages(). This is because device pages can be more than type MEMORY_DEVICE_PUBLIC. There are in fact 4 types, private, public, FS DAX,