[nacked] mm-avoid-unnecessary-page-table-walk-for-__get_user_pages.patch removed from -mm tree

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

 



The quilt patch titled
     Subject: mm: avoid unnecessary page table walk for __get_user_pages
has been removed from the -mm tree.  Its filename was
     mm-avoid-unnecessary-page-table-walk-for-__get_user_pages.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: Chen Wandun <chenwandun@xxxxxxxxxx>
Subject: mm: avoid unnecessary page table walk for __get_user_pages
Date: Tue, 6 Sep 2022 10:44:01 +0800

There is no need to walk page tables and find pages if faultin_page()
succeeds and __get_user_pages() doesn't care about populating the pages[]
array.  So directly go on to handle the next page.

Link: https://lkml.kernel.org/r/20220906024401.133336-1-chenwandun@xxxxxxxxxx
Signed-off-by: Chen Wandun <chenwandun@xxxxxxxxxx>
Reviewed-by: John Hubbard <jhubbard@xxxxxxxxxx>
Cc: David Hildenbrand <david@xxxxxxxxxx>
Cc: Jason Gunthorpe <jgg@xxxxxxxxxx>
Cc: Peter Xu <peterx@xxxxxxxxxx>
Cc: Alistair Popple <apopple@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/gup.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/mm/gup.c~mm-avoid-unnecessary-page-table-walk-for-__get_user_pages
+++ a/mm/gup.c
@@ -1231,7 +1231,10 @@ retry:
 					   PTR_ERR(page) == -EMLINK, locked);
 			switch (ret) {
 			case 0:
-				goto retry;
+				if (pages)
+					goto retry;
+				else
+					goto next_page;
 			case -EBUSY:
 			case -EAGAIN:
 				ret = 0;
_

Patches currently in -mm which might be from chenwandun@xxxxxxxxxx are





[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