Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19685736rwd; Wed, 28 Jun 2023 12:44:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49JYXkcvnar2xmJ3ZnRLIsVbpdlPgjxePU4rqGuc1WNDqCAbfJ8qNESWRBSp1E+DnueMzK X-Received: by 2002:a2e:8544:0:b0:2b4:7bad:671b with SMTP id u4-20020a2e8544000000b002b47bad671bmr17965371ljj.33.1687981480124; Wed, 28 Jun 2023 12:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687981480; cv=none; d=google.com; s=arc-20160816; b=X6hqQcG6sXqFm354P7w3XOvAxB546YkPKQ4+dbN2izKLmhBpEJGJGGAuuP/OOBiIwP TVaAWWomFCWlC0P9Es9cCBN3qZJ95k4Mt2bl+6SMvFwfgU1pGDUt1wwmV/LExUVzhzQL S8LwTXTf+XYxGwd2p93Mo6YGK+0OsJ8jYaPh+UaPeOh7P0Fl0u5DLn+ggt+5qcaNiYtd PEuUY8LN12Tty60D9LMogIOfImm7F0PM6hN53P2skC2aKqkQ5feq/Aeo5KRqkdMYmdSu ig8Db0WzGnJkP9FlDRAut6IukVUxKtLZ1crLDSNE+vUrvCNqzM5TmG8DwKDqVSG83Qeo 3agw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=z3+WfKV5Wz85M3f84YrJfAbIjSPqDA0LNe6BQbP5oxI=; fh=o4SlwfJyrokE/dNa77jO95haD5wOoUEQf+osDJdTV7Q=; b=XMCu4e3eKj1SiYS2rj3ISOrUbzsOoYBFGrGyeWD1p8lcLbFmaDi5sYvjC19fdc9Lqf UK03xgF9qWILZsH2K1gMQMmmN4jodSTmj9kfXeufcLC8fcg8RVRWQibJaAx+VQ180s+1 6PECY+N/aSbsWbKIDRaeyV6ZMSRMXfX6cUTl7tPyapoASY+yayRIs0zExsvR4v3WQXR7 sZzT7s5LzQ/1bQNRfxWuXhT8geR2IpgotNngaCPOSXzJdV19XNHKZESGRZQFIvQWc8gl i1vlgmFWdwb9upfe2ftu0cg6qmjCLak4KS61TQeu5E19tj86JT+t1bBOFifwxdXdTqwG JRhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a8lYgvYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a17090634d400b0098e08768a3dsi5692465ejb.422.2023.06.28.12.44.13; Wed, 28 Jun 2023 12:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a8lYgvYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbjF1TT1 (ORCPT + 99 others); Wed, 28 Jun 2023 15:19:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:23168 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbjF1TTY (ORCPT ); Wed, 28 Jun 2023 15:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687979917; 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: in-reply-to:in-reply-to:references:references; bh=z3+WfKV5Wz85M3f84YrJfAbIjSPqDA0LNe6BQbP5oxI=; b=a8lYgvYeh20eA7MBW/kabaWwxEOC6NhP6Eb1GbVnUlM1RzawT+vvmXRl2nUOlkN5twrsXH bh/Kd/2R5aObLnPORHj+o5FJbYcLPUe2rlK2e7iqwMm3o/eA+/1tDw9lEyqTwZSmt3CAAO cNGTBm+1s9/YEFVCL64D4oc9F36KxiI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-401-x-1JRoffOwuUYVdkw7tiHQ-1; Wed, 28 Jun 2023 15:18:34 -0400 X-MC-Unique: x-1JRoffOwuUYVdkw7tiHQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5A56F185A7A4; Wed, 28 Jun 2023 19:18:33 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F7FF46EE28; Wed, 28 Jun 2023 19:18:32 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20230626085035.e66992e96b4c6d37dad54bd9@linux-foundation.org> To: Linus Torvalds Cc: dhowells@redhat.com, Andrew Morton , Stephen Rothwell , linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] MM updates for 6.5-rc1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3696803.1687979912.1@warthog.procyon.org.uk> Date: Wed, 28 Jun 2023 20:18:32 +0100 Message-ID: <3696804.1687979912@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > Side note: I think we should just do the "FOLL_GET" doesn't touch the > refcount either, which would make this all become just Yeah... but there's a lot of places that would potentially need fixing. iov_iter_get_pages*(), for example, is used to grab pages and push them to all sorts of destinations, including pipes and sk_buffs. > but then we would need to fix try_grab_page() and gup_put_folio() and > friends to match. And any other cases I haven't thought of. And put_page(), folio_put(), ... I wonder if there would be a noticeable performance loss from adding an is_zero_page() check into those. It might also make sense to include the entire kernel post-init static image in that, perhaps a check: if ((unsigned long)(virt_address) & KERNEL_MASK == KERNEL_BASE) return; David