Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp5192lqf; Tue, 26 Mar 2024 12:10:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9Ok3xUmJ9qD/S6BPoIxlCJHYjJ60i3I3cTdd6coCVxWoIYwXUi373sDvtvmd/PB/4uZa5ezjIkZZg77fnwQFzGDoLyDVS/hert7MQXQ== X-Google-Smtp-Source: AGHT+IEq+GCA2MUl0zavOt1ObbPme7Fku3vRdn+cDz3RY/o6peQSuEHMGjk41XTBs4aAR1xKZYbI X-Received: by 2002:a05:6a20:9f4f:b0:1a3:52ef:cc84 with SMTP id ml15-20020a056a209f4f00b001a352efcc84mr496983pzb.60.1711480216584; Tue, 26 Mar 2024 12:10:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711480216; cv=pass; d=google.com; s=arc-20160816; b=ArMEEDjE3RfYWiMdQjqG1hqPBnscY/Ax+4zRBKYk8UXCEn9yJvPGTF36hjywpcGUIR OqM4oXccEMt498yToExJNm//6kuRhWCKke50HdXN/W4Z1vf1X3vpcQNPTOx4GkkDLI5T rj7UfeqK6hmXuq8BUUod88mPaecLtAdlczZeICv13f+mymLLLTtgiz1GuN4m1YkNgHcA NEZT250+yqdr6NfsGnQSIk+wHOJ7Rn6wVUKQyYqTw7lPXNKNLbCkRAF3XuLRSzA0IaUs 44Dt8A8kj7zO0L0yhoQ6vUyJ/U6S0SWLjsvFSCW+hmfEwrgholWifZ/UMmHuNYnFgFiQ JeVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BlKH85coPfvLXGKgP52Ck14DTun5Z9ZO3eF7ngWmZ0g=; fh=+Hq9ZXmLCPfQ5Ofq+EOiK/g6mbDu0E+Wp8vQHaqxl4Q=; b=sXTDRriAyn8oogEMdFMICL7DWPYnACMBN0tF2aUCtzN9jX/txGP3Q4pYDP0rFafykv kZj11G+ZVKdCHmqLOdTx8khZOoXM2bF8sjTbzqNsQnUJVohDrlW+WEh3dAlHdt9+Lxwa z4Sbva9K3Va1fckqh9kru1e8+AEio33LbZ3AW+Y+Q0FbXIDJMSoYIkw7ln2ETBFOrRX/ sPX5eDC2XGLIj0a+E85AnRGoya9LrXVJOo92uhX84OVv9toKdH2NhrQhH3ezLHwQhHvh ZBUAmPEmv+XCyatZ2h5QKIIsKnN2GHYN7Guwu9asmDREnFNPiiUzhPHkq6Fp+xUUEljq ohew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H4SWdBf8; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q18-20020a62e112000000b006e4fe4da2e3si7557383pfh.239.2024.03.26.12.10.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 12:10:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=H4SWdBf8; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 223C8340F9B for ; Tue, 26 Mar 2024 19:07:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B03AC13CC4C; Tue, 26 Mar 2024 19:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H4SWdBf8" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9676D128807 for ; Tue, 26 Mar 2024 19:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711480067; cv=none; b=skHL+uJ/oV8iSBZyIOwxk61iTfHE5h6paDmuYbvZODnm6EroWAD8aDjsLPxUwH1nELwvBw3yL1GIDHWiZOc63pbqkZS/YeS2Aoxl9WgrmIoeXPB14SAJet22ViCBTrBJAL3LashJyKl3IG1DruIkvcilhFPPZeHEMuUFP2Y+3QM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711480067; c=relaxed/simple; bh=Lqc9pjiV7j4DU0vzMAEDlb9FYCZTenHq/XANizmEr7A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vEH1yvybkupUAIA93oFLPjArhzFckffsxnWQiRh4+sjNL6puTR/kX+/SjYe3ZyXjxt2bjp/ljj663ZAQxSNqkBz8uzIJQhafwqSXxwQxAlAW/M+esmUZTdnlIbGXtSysWIRkiKDlTZSc8YtFxIOV3SlCcGjiU7EKFWn5N6Qvehw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=H4SWdBf8; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e6a9fafacdso4531593b3a.2 for ; Tue, 26 Mar 2024 12:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711480065; x=1712084865; darn=vger.kernel.org; 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=BlKH85coPfvLXGKgP52Ck14DTun5Z9ZO3eF7ngWmZ0g=; b=H4SWdBf8EXOhU7WL9RAYfJXA7MSrkfAmGk8x13gEmVfZRbYdCDVVr6dpJIMnfXj+LU ytYZ1InfVo1wSQ+QZTiZAZFxhQCa7xuaorbQ3ZX31/poCwKXZl+BNYL5CmlXUvdPG/RX Bx4AMrpW0EHuNrnqiwtJOaK/j/hs8y18dJleE9dFuV0I7Rs6o4qs+WdApR5LpZFb4VZL eq0f6KDcB8HdbV1kKTiCk6w0GdSbf7tYUYQtmxP33iBGQeydW7X4YEukz0xwzvxW6qhv NeiCkOy1NBfUSJJksdWRyN3b5SYuoTYoG6bhqTewYeoDS4qPkrGkQjtmWK1VwGD55coM qLIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711480065; x=1712084865; 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=BlKH85coPfvLXGKgP52Ck14DTun5Z9ZO3eF7ngWmZ0g=; b=F+qHEqk5JFoGSYiLh3uPslO1FdXhjRpexmTZDTy7/iOlvoJ9YBa+Sw1uKNUViZ9Ldv hIBw++7sIt9LMLAhptEI/FrXUEBnVHOdXbvEuLkI4w/WbC9KI4H00QCT/D0hMrxxGcRJ udBPflRh/Ifn7ifLiyCf4GT3JKF1ikxTWpgaKuKSPr5LYyHHnN2A9VX+zU0npU5YUDWo 7imR35nf1XQ+HCwfrwL4iq41vqThxfPLlvo++6RVojgkONLq/IK8Gm3NXFV2YRCf2apL /TppT+ApHnRUuG7gHdWFBNFchYvFLbEu5I4ouTPugPv+HhUR6U/ydHniW8+An3oQ5Yc5 /ZZg== X-Forwarded-Encrypted: i=1; AJvYcCV8S3q2F/QsEthUKkvydNsWJaYBMSbK8zEFehmgLEtdSHl8NXgNI4x55bZrRX/xUZLg/iN4tbiP2OlLoXUtZJf+FJjxmCO12PRLPlIy X-Gm-Message-State: AOJu0YzlbuKRFyaqzZ5//aiSmziT/1QSZ83Sk/V0RIFKKGiDKOD9yCw4 NcUrqUsX8HnbQAtwhQarb0HKWV114UdA7uiiD6djz/mEepDrM50c X-Received: by 2002:a05:6a20:1a07:b0:1a3:5c60:112a with SMTP id cj7-20020a056a201a0700b001a35c60112amr395260pzb.36.1711480065179; Tue, 26 Mar 2024 12:07:45 -0700 (PDT) Received: from fedora (c-73-170-51-167.hsd1.ca.comcast.net. [73.170.51.167]) by smtp.gmail.com with ESMTPSA id y14-20020a056a00180e00b006e68b422850sm6303432pfa.81.2024.03.26.12.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 12:07:44 -0700 (PDT) Date: Tue, 26 Mar 2024 12:07:41 -0700 From: Vishal Moola To: Qi Zheng Cc: akpm@linux-foundation.org, hughd@google.com, david@redhat.com, rppt@kernel.org, willy@infradead.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] minor fixes and supplement for ptdesc Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 04, 2024 at 07:07:17PM +0800, Qi Zheng wrote: > Hi all, Sorry for the late review. Thanks for looking at doing some ptdesc conversions. This patchset has the right idea and looks *mostly* fine. > In this series, the [PATCH 1/3] and [PATCH 2/3] are fixes for some issues > discovered during code inspection. > > The [PATCH 3/3] is a supplement to ptdesc conversion in s390, I don't know > why this is not done in the commit 6326c26c1514 ("s390: convert various pgalloc > functions to use ptdescs"), maybe I missed something. And since I don't have an It's important to keep in mind the end goal of ptdescs, cleaning up much of the struct page field misuse by standardizing their usage. s390 page tables and gmap are similar but not the same, so the conversions require deeper thought. My initial "Split ptdesc from struct page" patchset tried to focus on the most straightforward, simple conversions in order to introduce the descriptor and lay a foundation for future conversions - you can see some more complicated iterations v6 and prior. When converting to ptdescs (and any other newer descriptors), we should be careful about generating superficial code churn instead of using them to solve the problems they are trying to solve.