From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbdBFSrL (ORCPT ); Mon, 6 Feb 2017 13:47:11 -0500 Received: from shelob.surriel.com ([96.67.55.147]:39571 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbdBFSrJ (ORCPT ); Mon, 6 Feb 2017 13:47:09 -0500 Message-ID: <1486406782.2096.9.camel@surriel.com> Subject: Re: [PATCH] mm/autonuma: don't use set_pte_at when updating protnone ptes From: Rik van Riel To: "Aneesh Kumar K.V" , akpm@linux-foundation.org, Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Date: Mon, 06 Feb 2017 13:46:22 -0500 In-Reply-To: <1486400776-28114-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1486400776-28114-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-MVn22G2WdKfDmQ8Qj1LC" X-Mailer: Evolution 3.22.3 (3.22.3-2.fc25) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-MVn22G2WdKfDmQ8Qj1LC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2017-02-06 at 22:36 +0530, Aneesh Kumar K.V wrote: > Architectures like ppc64, use privilege access bit to mark pte non > accessible. > This implies that kernel can do a copy_to_user to an address marked > for numa fault. > This also implies that there can be a parallel hardware update for > the pte. > set_pte_at cannot be used in such scenarios. Hence switch the pte > update to use ptep_get_and_clear and set_pte_at combination. >=20 > Signed-off-by: Aneesh Kumar K.V Acked-by: Rik van Riel --=20 All Rights Reversed. --=-MVn22G2WdKfDmQ8Qj1LC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJYmMR+AAoJEM553pKExN6DCo0H/1MTESBsUw1agPUbNADBK8cO AshsZABraHVZOTrCM82NuDRetdh/KwGN6LJmovY1vRr5NUrKv2lgQKewwykUOZ2B KOTF3jJMuSpTT+pIduC5NIIl1KUaIFqEF3faxsZIqEwMS283hOStq1GIBCxrggco 0z2OLgXTL9RJp5Zy0FoZvY0Nzi65wkC7g6j4tDtb7tzzNL1oTtXXJ5UUeN82cGwh 4KIkZ8ceIwzmr5+7VjWMOxK4A0EYu2vDt3lQrvayKqVNvZKWLeJVzV1vKyHsh7th JMDbrvSAPwHlL4BK0gNQ5GWTp89Lo9nZAzWS86alQxmzlr3V8v+9GhYHFUHPE5M= =wQYs -----END PGP SIGNATURE----- --=-MVn22G2WdKfDmQ8Qj1LC--