The patch titled Subject: mm-swap-fix-release_pages-when-releasing-devmap-pages-v3 has been added to the -mm tree. Its filename is mm-swap-fix-release_pages-when-releasing-devmap-pages-v3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-swap-fix-release_pages-when-releasing-devmap-pages-v3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-swap-fix-release_pages-when-releasing-devmap-pages-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ira Weiny <ira.weiny@xxxxxxxxx> Subject: mm-swap-fix-release_pages-when-releasing-devmap-pages-v3 Update changelog for more clarity as requested by Michal Update comment WRT "failing" of put_devmap_managed_page() Link: http://lkml.kernel.org/r/20190604164813.31514-1-ira.weiny@xxxxxxxxx Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx> Cc: Jérôme Glisse <jglisse@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx> Reviewed-by: John Hubbard <jhubbard@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/mm/swap.c~mm-swap-fix-release_pages-when-releasing-devmap-pages-v3 +++ a/mm/swap.c @@ -747,8 +747,10 @@ void release_pages(struct page **pages, locked_pgdat = NULL; } /* - * zone-device-pages can still fail here and will - * therefore need put_page_testzero() + * Not all zone-device-pages require special + * processing. Those pages return 'false' from + * put_devmap_managed_page() expecting a call to + * put_page_testzero() */ if (put_devmap_managed_page(page)) continue; _ Patches currently in -mm which might be from ira.weiny@xxxxxxxxx are mm-swap-fix-release_pages-when-releasing-devmap-pages.patch mm-swap-fix-release_pages-when-releasing-devmap-pages-v2.patch mm-swap-fix-release_pages-when-releasing-devmap-pages-v3.patch