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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 167D8C7EE23; Thu, 18 May 2023 12:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbjERMMb (ORCPT + 1 other); Thu, 18 May 2023 08:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbjERMMJ (ORCPT ); Thu, 18 May 2023 08:12:09 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E314B19A for ; Thu, 18 May 2023 05:12:06 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-75771dd7242so107265785a.1 for ; Thu, 18 May 2023 05:12:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1684411926; x=1687003926; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=b1LVde9eD9hiDa72aXFp01UeitZcx1XKK5VRIQwwJ4w=; b=f1WIjix4LVO2qoUadyymiNEwWX8LVYnKjiZJmHZsA00vpgp8OzN7fLeOXwmxyAsNjQ sHOCKYtaHjUeBnmA70xUS7m11Y8GXRs0HF7i7PVSFcwvUzQVx0yAXlGLYQrw7yq7y3KH MBoMqwZGJTzwuItitFkcFv88cqBCrBWri+DUGp8Fc0eAqXpc1sD7lY1vf9Zu0c1UnHTi g1NSzolGSvoeoheQrwHIwMvc3Rso4DvQpoRRtvFDk7J6iY3SLf6NCCF8S9IRrkOXhhUV HRuCy/CUe+KQ4Lk9dlGX7GSjHNglFJk4MTFkm4joUr1QsJe7so9IrOlgfq/tmei89LyY B2xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684411926; x=1687003926; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=b1LVde9eD9hiDa72aXFp01UeitZcx1XKK5VRIQwwJ4w=; b=gQZMxtOxzctTxLNQfmRN9XDe5HSNW+h8v4kHPr5bR5Lom8/NV0kPpHj2CGfFhT5hfI FiGfzI/hQ/CquDMSVjEzqrRMN/elRuRqJwSBOppSf1midY/3MLfemLLd9iNQAv2U/TfN AxVDTf2KNzOO7CiiHleYYMw4bfSqkbjNaq4Xlz/e4QZLPypROIA7TFR378hpgrNRYWQ7 5zvuZkZQMNcb4n+ujTdl6ZzzKONuhgOYHMoat9pDrO3kVXNLUUf4CqVzvKHPkiraE2x2 bokW4X/bUk6rKNqCzoWJLQXqlLt4iDY2GQ3YooFfuoNE22vi2w/ASnXVwkv1fM4bNKQK aSlg== X-Gm-Message-State: AC+VfDyZFFXR2AIhgb4+X1xs1YOJ4N3B+JytWDVu9PxXvjnxBgYiYbJX ng/1xCpkFb7+9/qIF6OFuV1W9g== X-Google-Smtp-Source: ACHHUZ7wZ7lgCFFjWmWBQuc0tx+WGJVC/VREvoop6Vbqh2gPTjnAeer0zQN00cudqqAWi4mVPLtPKg== X-Received: by 2002:a05:6214:2486:b0:5fd:7701:88c5 with SMTP id gi6-20020a056214248600b005fd770188c5mr5974330qvb.6.1684411925806; Thu, 18 May 2023 05:12:05 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-25-194.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.25.194]) by smtp.gmail.com with ESMTPSA id w8-20020a0562140b2800b006215c5bb2e9sm476635qvj.70.2023.05.18.05.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 05:12:05 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1pzcUG-0055VE-PF; Thu, 18 May 2023 09:12:04 -0300 Date: Thu, 18 May 2023 09:12:04 -0300 From: Jason Gunthorpe To: "Vishal Moola (Oracle)" Cc: Andrew Morton , Matthew Wilcox , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, xen-devel@lists.xenproject.org, kvm@vger.kernel.org, Catalin Marinas , Huacai Chen , Geert Uytterhoeven , Thomas Bogendoerfer , Dinh Nguyen , Jonas Bonn , David Hildenbrand , Claudio Imbrenda , Paul Walmsley , "David S. Miller" , Richard Weinberger , Yoshinori Sato , Dave Hansen , Arnd Bergmann Subject: Re: [PATCH v2 00/34] Split ptdesc from struct page Message-ID: References: <20230501192829.17086-1-vishal.moola@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230501192829.17086-1-vishal.moola@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-openrisc@vger.kernel.org On Mon, May 01, 2023 at 12:27:55PM -0700, Vishal Moola (Oracle) wrote: > The MM subsystem is trying to shrink struct page. This patchset > introduces a memory descriptor for page table tracking - struct ptdesc. > > This patchset introduces ptdesc, splits ptdesc from struct page, and > converts many callers of page table constructor/destructors to use ptdescs. Lightly related food for future thought - based on some discussions at LSF/MM it would be really nice if an end result of this was that a rcu_head was always available in the ptdesc so we don't need to allocate memory to free a page table. Jason