+ mm-swap-fix-release_pages-when-releasing-devmap-pages-v2.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-swap-fix-release_pages-when-releasing-devmap-pages-v2
has been added to the -mm tree.  Its filename is
     mm-swap-fix-release_pages-when-releasing-devmap-pages-v2.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-swap-fix-release_pages-when-releasing-devmap-pages-v2.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-swap-fix-release_pages-when-releasing-devmap-pages-v2.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-v2

add comment clarifying that put_devmap_managed_page() can still fail

Link: http://lkml.kernel.org/r/20190524173656.8339-1-ira.weiny@xxxxxxxxx
Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
Cc: Jérôme Glisse <jglisse@xxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Cc: John Hubbard <jhubbard@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/swap.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/mm/swap.c~mm-swap-fix-release_pages-when-releasing-devmap-pages-v2
+++ a/mm/swap.c
@@ -746,6 +746,10 @@ void release_pages(struct page **pages,
 						       flags);
 				locked_pgdat = NULL;
 			}
+			/*
+			 * zone-device-pages can still fail here and will
+			 * therefore need 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





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux