Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1190127ybp; Wed, 9 Oct 2019 10:06:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWn6YhsyrnZ10/T4adaNWiMpAMcb5Tp4l3isUmO3XF3M08QFo4/8aZ58SADXy/P8iH7afX X-Received: by 2002:aa7:ca52:: with SMTP id j18mr3896014edt.299.1570640788029; Wed, 09 Oct 2019 10:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570640788; cv=none; d=google.com; s=arc-20160816; b=lPI1yVgTEnBcuLUlnUvWzci5J6+RBtEAlMt8Ahlk24wiMAMQxBiT6h+bavClVymoU8 oQIUx/yZIju39r1rc17qGkiWSSoXS1h8RirLvH53G4gqkRBF6llhark7RkP9entv96af oPtc6UpxFUjGqpO2OV6uGRBo4lq5PJ6P+EOmcpMgJhpTDSkuG4e7G9FfRGACKDBMU1ul U8B+R61PWCjLYRG/3c1pPWl0hS2OlM1CNIv3jbEEboNWP5qWxHX+8nk6bBLkykfqleA5 qdiN4m/o1pB8sdXEkkw+Y3z8EoPKjPKA/ugkbY3IjQaMgY/Hyx4sfHtxdTc6qBU6XwOX PWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=Y18stFrj/bXzgUQ8+UUbutepy2AeCNmnLoeV64VryNg=; b=rHemj1fG8+tdi2QPaKfx24zE5aN6I2qUjPp3kAU5KeIVMqg6Y5hcJDeawNVC/mKMhz yaPkeN85ckpXdN3XoBGqPIhXjLKqA2fhHhh17/C/JNS4R3RVquxv3VU6IxYnM8tdGlsL qWp9JrUehWWjGP3oRpkHU5IItUKOm2WlVwtwTCLHkFRc6lxoRxly9lKEqpOAXzwwZJxt ua5EohE/isO+EYP8iqXM/GtiXPmwaskytIIlNyuA3STDa7iyUfgTAHcPFy/MuiJvcmyH xMVWXkosAMMw1bIbs+y32sa+gkuixXDwaG0PGGI9tYXrPsa9HRngduGviQ+1oscn/8Kv kVfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@shipmail.org header.s=mail header.b=au2vnm4n; 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 i20si1497830edy.426.2019.10.09.10.05.54; Wed, 09 Oct 2019 10:06:28 -0700 (PDT) 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=fail (test mode) header.i=@shipmail.org header.s=mail header.b=au2vnm4n; 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 S1731877AbfJIRDa (ORCPT + 99 others); Wed, 9 Oct 2019 13:03:30 -0400 Received: from ste-pvt-msa2.bahnhof.se ([213.80.101.71]:60125 "EHLO ste-pvt-msa2.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730546AbfJIRD3 (ORCPT ); Wed, 9 Oct 2019 13:03:29 -0400 Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTP id 7BB7F3F99B; Wed, 9 Oct 2019 19:03:27 +0200 (CEST) Authentication-Results: ste-pvt-msa2.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=shipmail.org header.i=@shipmail.org header.b=au2vnm4n; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.099 X-Spam-Level: X-Spam-Status: No, score=-2.099 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Authentication-Results: ste-ftg-msa2.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=shipmail.org Received: from ste-pvt-msa2.bahnhof.se ([127.0.0.1]) by localhost (ste-ftg-msa2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HTYE5enBQACG; Wed, 9 Oct 2019 19:03:26 +0200 (CEST) Received: from mail1.shipmail.org (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) (Authenticated sender: mb878879) by ste-pvt-msa2.bahnhof.se (Postfix) with ESMTPA id 727FD3F92C; Wed, 9 Oct 2019 19:03:25 +0200 (CEST) Received: from localhost.localdomain (h-205-35.A357.priv.bahnhof.se [155.4.205.35]) by mail1.shipmail.org (Postfix) with ESMTPSA id 0319936016C; Wed, 9 Oct 2019 19:03:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=shipmail.org; s=mail; t=1570640605; bh=ZTdGBetgktrXJR2odbaAV4HXWOuZWP+ZPKCFryblwi8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=au2vnm4n62gXuapIh87b7KtGUtJPWjvf1Fm8hTpSvSwF5y0ULh4L86XYGCvt0TiES jtsWHdnaYg9MaIU66VBDM8iWaI8zPDeJMb/ZeUWJsg75y2mdADsX7aG90yuk5DfIIp QvGpxTEc6tz23XhEbpZJjlMWkVytVtIFtFYRBdvU= Subject: Re: [PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present To: Linus Torvalds , "Kirill A. Shutemov" Cc: Linux Kernel Mailing List , Linux-MM , Thomas Hellstrom , Matthew Wilcox , Will Deacon , Peter Zijlstra , Rik van Riel , Minchan Kim , Michal Hocko , Huang Ying , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= References: <20191008091508.2682-1-thomas_os@shipmail.org> <20191008091508.2682-4-thomas_os@shipmail.org> <20191009152737.p42w7w456zklxz72@box> From: =?UTF-8?Q?Thomas_Hellstr=c3=b6m_=28VMware=29?= Organization: VMware Inc. Message-ID: <03d85a6a-e24a-82f4-93b8-86584b463471@shipmail.org> Date: Wed, 9 Oct 2019 19:03:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/9/19 6:21 PM, Linus Torvalds wrote: > On Wed, Oct 9, 2019 at 8:27 AM Kirill A. Shutemov wrote: >> Do we have any current user that expect split_huge_pmd() in this scenario. > No. There are no current users of the pmd callback and the pte > callback at all, that I could find. > > But it looks like the new drm use does want a "I can't handle the > hugepage, please split it and I'll fo the ptes instead". > Nope, it handles the hugepages by ignoring them, since they should be read-only, but if pmd_entry() was called with something else than a hugepage, then it requests the fallback, but never a split. /Thomas