Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp593537ybf; Wed, 26 Feb 2020 19:12:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy2XkgYJ3FOZvXS6ZsDP7g7SRQ+LvZiQPjzDvojOi59VHrs+i68MOdaP6apDgr13C5Y3T31 X-Received: by 2002:a9d:65cb:: with SMTP id z11mr1535338oth.348.1582773167142; Wed, 26 Feb 2020 19:12:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582773167; cv=none; d=google.com; s=arc-20160816; b=cuvEcIB2h47B5WU8e6ZBLeS8/e29kQytNR6nPVWepgZH7DAmubqwR3V+Ar6fCEWyah vsCD5AMF/bQWUDyDE++S9NZSiJ+JIrfW4kLnpThbW4oFApDKjGtDX32tEcv/K5mw0jWF 5ZKvBUv4avpXwtEKrCQH/k51Bm/EIhtJJyXLeNaMPvDvWlliGt1ry5c2ATl6U41Bgs6y LsLBd2axzhdAWNQzhneukF7XsZ279iS2Km89sQCv4DpmRLCyJC1lr8mLTppaQHUPz7VH oUSTKQgrd4C+Bhc28oJuPAalrMO6EePjnS0mYtq2cipZWIglWa287UDcz9zBZgqKgKrl 6RMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature; bh=eXsKgvYSQiPBmoikSWebCAtZdeuICR0jPe8Kcg87vSc=; b=GygESH9Pb4ZvUtL4R6+VOY6O/f4RjVZBnP1tFDiqAS+fgdhhdxSLNy4NFIlB93IpzO nzZoYNAAw/uwpzGExIa+dk5IP1LvGrNuGlM+P/HBxCR4PtX3mcOZTVwbF4ihim/eSfdh 9kUEFd6SaB7iSDsrl9yUUwwhEm0tIdUHcqCIDoWQaw/KM9tCemsrZY08fY59IQhlAKu9 Q4RWcaVhPMqQIFuX8pNVFgwShcU50R962cj7DttToRU5jmvGnCIQGq2OV80Ln7PU3Gll TZ/Uz/Kizq0HdAtE9Qt/ry7Ec+Wp0c7shCOXa685oy151qOcLzKDTU1boek3RZ0lCsGC cJXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Nyq+0yKT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si737636otq.237.2020.02.26.19.12.34; Wed, 26 Feb 2020 19:12:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Nyq+0yKT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728266AbgB0DLv (ORCPT + 99 others); Wed, 26 Feb 2020 22:11:51 -0500 Received: from ozlabs.org ([203.11.71.1]:48643 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728173AbgB0DLv (ORCPT ); Wed, 26 Feb 2020 22:11:51 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48Sd4P0RpTz9sQx; Thu, 27 Feb 2020 14:11:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1582773109; bh=eHa+3pK4PlM4yhNHt2NS/FOBoc7mPNn7GOxAa/M0LMg=; h=Date:From:To:Cc:Subject:From; b=Nyq+0yKTfhkk5WFspY03agxZgzcUEHdh1/60g1acP+MphqdJaseXmlmMdDuMzyTBq IG/9Lrb1T/g5Ni6X+oXbU7sq+4vLNUQvnHMhU3JxAZdTr6lkNFJToST0Ml9/Gqnzed LykgaI4+dPdJXVxGDPPe1Lwyx09nNBBx4Qb6MbPEgtOSHmlDAoDoHZSnLixQpEZMRS 5arX4GrauYai0Bi5iO9/VBjNnw41ChA1g3jnZVKXr+yNNKM88aBa12ul66xhW1q7lo GJetiGnzra6R5LfguWCesz2F2tHu/DKEGmibdTNAeXebHhBSwgKJJ+mmkIVSIpHOXu 3OxuY5idVDJfQ== Date: Thu, 27 Feb 2020 14:11:48 +1100 From: Stephen Rothwell To: Andrew Morton , Christian Borntraeger , Janosch Frank Cc: Linux Next Mailing List , Linux Kernel Mailing List , Claudio Imbrenda , John Hubbard Subject: linux-next: manual merge of the akpm-current tree with the kvms390 tree Message-ID: <20200227141148.05d7d502@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/GX7+R1ByaTc96Id/6+oIct9"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/GX7+R1ByaTc96Id/6+oIct9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: mm/gup.c between commit: 732b80e677b8 ("mm/gup/writeback: add callbacks for inaccessible pages") from the kvms390 tree and commit: 9947ea2c1e60 ("mm/gup: track FOLL_PIN pages") from the akpm-current tree. I fixed it up (see below - maybe not optimally) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc mm/gup.c index 354bcfbd844b,f589299b0d4a..000000000000 --- a/mm/gup.c +++ b/mm/gup.c @@@ -269,18 -470,11 +468,19 @@@ retry goto retry; } =20 + /* try_grab_page() does nothing unless FOLL_GET or FOLL_PIN is set. */ + if (unlikely(!try_grab_page(page, flags))) { + page =3D ERR_PTR(-ENOMEM); + goto out; + } + if (flags & FOLL_GET) { - if (unlikely(!try_get_page(page))) { - page =3D ERR_PTR(-ENOMEM); - goto out; - } + ret =3D arch_make_page_accessible(page); + if (ret) { + put_page(page); + page =3D ERR_PTR(ret); + goto out; + } + } if (flags & FOLL_TOUCH) { if ((flags & FOLL_WRITE) && !pte_dirty(pte) && !PageDirty(page)) --Sig_/GX7+R1ByaTc96Id/6+oIct9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl5XM3QACgkQAVBC80lX 0Gxbrwf/QMaJBJLbG8u0mjOZR+stuPMQ5XeLc3F0RdgSbb6OOG3TWsvaSutk6WSI P0d8yxNW5FbFe/Bk9aWekvpl75nUEhxqv9TosNEmTDo58PmZ6XNZ1N74Tiy6oHTP cqgwVc7G1kG/iSv4w8A2GZjqiaZMcgUexEWfG4FessQdUsZ8eyapYWZfiZqwDg4A ec5zYwqtse/hcvKHgDd0QdFhqzXdnp+/LtwZ1WDRAKeL0n5XPkRWtI6uPduDhttH J9MVJmlC8Z6Q4xtnsbjBWA7EyIrL5egzuCW9lO2dqWQCWUJVh6f73g9eJW3fAiSO PxsqoKewipY27I3WpObTzXNHYwGKXA== =f+KP -----END PGP SIGNATURE----- --Sig_/GX7+R1ByaTc96Id/6+oIct9--