From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACF0AC432BE for ; Wed, 1 Sep 2021 18:10:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4A424610A1 for ; Wed, 1 Sep 2021 18:10:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4A424610A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id DD4B28D0003; Wed, 1 Sep 2021 14:10:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D836C8D0001; Wed, 1 Sep 2021 14:10:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C4BB88D0003; Wed, 1 Sep 2021 14:10:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0150.hostedemail.com [216.40.44.150]) by kanga.kvack.org (Postfix) with ESMTP id B59A18D0001 for ; Wed, 1 Sep 2021 14:10:10 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 7DD9C20420 for ; Wed, 1 Sep 2021 18:10:10 +0000 (UTC) X-FDA: 78539793780.13.926133E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 2259410000BC for ; Wed, 1 Sep 2021 18:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630519809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9NKf3uO34AvCSRdJEV//9X5/WuVnzohW4EzO2VLlwhk=; b=FKh9pXjyrA5VUcTjVMLEwJV8w4aGM34Y5zt9AJLrLHzAnZOeV0gXU374Uc30UofLDsnfBJ LuGBLM5qv5cldwkKCuu/D3xLMvG9P5xpg+mKNcHNHQeevTv1EuQ5NNe84ViGUmocM4oCma zXVvM/0SRtqLDXbBDGC9fi+tyZZhxz8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-142-FSQtI54oMy6fc954bBN9Cg-1; Wed, 01 Sep 2021 14:10:08 -0400 X-MC-Unique: FSQtI54oMy6fc954bBN9Cg-1 Received: by mail-wr1-f71.google.com with SMTP id h14-20020a056000000e00b001575b00eb08so167324wrx.13 for ; Wed, 01 Sep 2021 11:10:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=9NKf3uO34AvCSRdJEV//9X5/WuVnzohW4EzO2VLlwhk=; b=fHzgaehmtYrRRqp0azmWdjRVLVqa8z75OHCTCRJxP5loQBwI1cnhi3IfWKnCx3l6ji TcHogfUTBfF7pPRdjRSUojgl6Ph1w6UtRuy0P2LiSumkG242vw1TzFEFP91H3xLPPY3M xlwKWXMa53jRTg5uBqQjRps+4MpROaugstpDSnNYurersdenZV2LadyJTpUOWWrfF9T+ t2RUUDmLYihYejAb0NqAC4cwft9ZQIgRU+uORHe3wktbBM8fx+nBXdsx/PamSlQ4Z7m4 IGn4Hxr+oBrZ9Keq1YTeSeyMH08eSyKgDk7bz1CzAKlFEROR/iupxconz76cm967JmLx pirw== X-Gm-Message-State: AOAM532ydXBaFJYPoMN6nS+fO9q8FkPwNtXR31bqOQBNXke2v47KvOBI SFrUSwZ8DrSNO2KBp1icbxGqs75DwDZ72UNUwUxi5N7fcLB64BBQ5Tgc1wfaGwMS7EtbgeE0+L3 UYnsEEbIBCoo= X-Received: by 2002:adf:c3c3:: with SMTP id d3mr762071wrg.373.1630519807443; Wed, 01 Sep 2021 11:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+M43pfhuaLKye8YBTMT45+0fbZOP2iZhzz9o/djvCwsKzzBpvEOE73hmUgETCVRm8npRcXg== X-Received: by 2002:adf:c3c3:: with SMTP id d3mr762051wrg.373.1630519807306; Wed, 01 Sep 2021 11:10:07 -0700 (PDT) Received: from [192.168.3.132] (p4ff23f71.dip0.t-ipconnect.de. [79.242.63.113]) by smtp.gmail.com with ESMTPSA id c13sm165598wru.73.2021.09.01.11.10.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 11:10:06 -0700 (PDT) Subject: Re: [PATCH v2 6/9] mm: free user PTE page table pages To: Jason Gunthorpe Cc: Qi Zheng , akpm@linux-foundation.org, tglx@linutronix.de, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, kirill.shutemov@linux.intel.com, mika.penttila@nextfour.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, songmuchun@bytedance.com References: <20210901135314.GA1859446@nvidia.com> <0c9766c9-6e8b-5445-83dc-9f2b71a76b4f@redhat.com> <20210901153247.GJ1721383@nvidia.com> <7789261d-6a64-c47b-be6c-c9be680e5d33@redhat.com> <20210901161613.GN1721383@nvidia.com> <20210901171039.GO1721383@nvidia.com> <20210901175547.GP1721383@nvidia.com> <52ba8125-0382-3270-a958-ed113ae1db2a@redhat.com> <20210901180914.GS1200268@ziepe.ca> From: David Hildenbrand Organization: Red Hat Message-ID: <01754b36-12c6-48dc-4f84-c289b7aa47ec@redhat.com> Date: Wed, 1 Sep 2021 20:10:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210901180914.GS1200268@ziepe.ca> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=FKh9pXjy; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf07.hostedemail.com: domain of david@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=david@redhat.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2259410000BC X-Stat-Signature: f5sgfk6t6i1fn8zjfyn8midzger8nnq8 X-HE-Tag: 1630519809-144904 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 01.09.21 20:09, Jason Gunthorpe wrote: > On Wed, Sep 01, 2021 at 07:58:47PM +0200, David Hildenbrand wrote: >> You'll most likely have to touch each and every place either way, for >> example when suddenly returning "null" instead of a pte. It's just a matter >> of making this easier to review and the changes as minimal and as clear as >> possible. > > I imagine the leading series to add the simplified API would include > the null return already - the THP race avoidance requires it anyhow. > Okay, so we're on the same page. > So you end up with a simpler self contained series that is a stand > alone improvement followed by a much smaller series here that doesn't > got back and re-touch the first series's changes. Exactly. -- Thanks, David / dhildenb