Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp497017pxb; Wed, 24 Feb 2021 07:35:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzgdCz0uMtwZJGQsP1uXLHrUc9AaRwlYg/BtuQsFZ7QpW3QsQUH4v895epRbXd84cVUDMq X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr1583051ejb.279.1614180950946; Wed, 24 Feb 2021 07:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614180950; cv=none; d=google.com; s=arc-20160816; b=AFwZVcr9zMidnJ3ftchd84ZaGYqwkl7T1cfHHJTo1RlZgmOf7WrpPCqHbB+qY/MQqB 0KClTpBVNIQOhTbtoPso7uBN3+Lsn2yErT02i6AQi8sREaa5VEbbeholQm6y+FYT8Kyj Paqdh5uRaZW06/gyhZlY3d6Nwv9dxDjXkIiankgFZfPE5R/tJ4qo78DWQKcB7N6lPJir 8vtGpTzJ8KMflRXWQmGo5+hsmpah8P02wJdVqwshVRevoSbNjtQVfM6FoSOh0tUXVW4S 4FeReOE9O4LQEkH/EVQxFNB4JJc0/aZSPXlMEFq+5yHXhdAQ9+Arl+FBuetbaxvXszf4 bOtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=R/QNHaF/C3k1O+6KMYWxS+QBt0mZDPUXm9OSFxwYZlI=; b=iF/tLq6jBj4QlURfYJWsPViHrMPTzOJkiEWPb4Zclc8xkH+5jJ87BnxG75khV7F91w 4+1Dw3AKia452DjEzxptvA5U24h4ay0jNksFrpph6mCQMcQuS9kOmILOIkEV0VSLPLef Lyfn5ui2debBcf7JO4J5VYc5jL1kXf9PAlIJi/8ORf+wLhRnevz490AM/dkG2GbLH5VO zUNS9uFvpa69pu/773ofrDkpna/P4UOr8WJ+nYKgbB8QyJq02j2WDi+isSEf8acXFpp1 VU/jLYO8pWLkShgkoSZD/EM+cq4rR76Mxh34uTYHhr3lW+rqMepc/CJKbIF4z0OuXqzL +9LQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si1256178edt.85.2021.02.24.07.35.12; Wed, 24 Feb 2021 07:35:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235469AbhBXPcB (ORCPT + 99 others); Wed, 24 Feb 2021 10:32:01 -0500 Received: from shelob.surriel.com ([96.67.55.147]:49096 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236248AbhBXO6b (ORCPT ); Wed, 24 Feb 2021 09:58:31 -0500 X-Greylist: delayed 662 seconds by postgrey-1.27 at vger.kernel.org; Wed, 24 Feb 2021 09:58:30 EST Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lEvQq-0006j5-Se; Wed, 24 Feb 2021 09:46:28 -0500 Message-ID: Subject: Re: [PATCH v6 0/3] mm,thp,shm: limit shmem THP alloc gfp_mask From: Rik van Riel To: Hugh Dickins , Vlastimil Babka Cc: Andrew Morton , xuyu@linux.alibaba.com, mgorman@suse.de, aarcange@redhat.com, willy@infradead.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, linux-mm@kvack.org, mhocko@suse.com Date: Wed, 24 Feb 2021 09:46:13 -0500 In-Reply-To: References: <20201124194925.623931-1-riel@surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-OromBUoFm9ZFqotShFp+" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-OromBUoFm9ZFqotShFp+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-02-24 at 00:41 -0800, Hugh Dickins wrote: > On Mon, 14 Dec 2020, Vlastimil Babka wrote: >=20 > > > (There's also a specific issue with the gfp_mask limiting: I have > > > not yet reviewed the allowing and denying in detail, but it looks > > > like it does not respect the caller's GFP_ZONEMASK - the gfp in > > > shmem_getpage_gfp() and shmem_read_mapping_page_gfp() is there to > > > satisfy the gma500, which wanted to use shmem but could only > manage > > > DMA32. I doubt it wants THPS, but shmem_enabled=3Dforce forces > them.) >=20 > Oh, I'd forgotten all about that gma500 aspect: > well, I can send a fixup later on. I already have code to fix that, which somebody earlier in this discussion convinced me to throw away. Want me to send it as a patch 4/3 ? --=20 All Rights Reversed. --=-OromBUoFm9ZFqotShFp+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmA2ZrUACgkQznnekoTE 3oOn2Qf+LFKPcOreR8SAWAxKLxMeHgT3ILPYIhzzG3Ds6UPNJhV16wmoGT5PObZ5 axV6t4vGE7//wE6Gbxwhm4UEEWBawJ/Tn6R+ltr0OsisLpRuCh0exnvclCKBTRmi PoH2YJgehkumfd+NIfsCcCGJsy+c7w/oRrPBeY8Pu1uXM86ONaOmB0TbYwFUvjEH P+MEJNZYrUGoy0Q2ZduUXV06zKa/MFNC02wFGIHDCOd521CwMizP8EuSqk+IFCdd 47AfUIl4JYIjQr0z32GhMtY/qnedRTTM9halSZi2qHiAxo74Z2NRRI/7SJSy3saU gN9tCjNvMXYAxUZOmOpvp3V9QJDraw== =bbq9 -----END PGP SIGNATURE----- --=-OromBUoFm9ZFqotShFp+--