Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30944716rwd; Thu, 6 Jul 2023 13:07:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8dNIXWhsAJ00S+qQZbR910dOIYeXLTurCT12fSRQ8kKGoCm3X+trdTUtRvSjCTHMt1AlA X-Received: by 2002:a05:6a00:1251:b0:680:252d:da3e with SMTP id u17-20020a056a00125100b00680252dda3emr2892971pfi.5.1688674025671; Thu, 06 Jul 2023 13:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688674025; cv=none; d=google.com; s=arc-20160816; b=xEAWxxbwOqotrpTP8JMhZtyhp1MtcXt7K/9wc+wLuFGx3n9IwP2Q10q4S4RTxxHY4X kJvp/udEzMFr41jxEWXtqL2+vnnawlHIe+FrUo4SrGX1aziXweLDnQAOHBsruIfIn7V0 KQDt116lhs//GBeJsmZ13jn1BGAs1mNQa6p8Lzucs+VyX82LpdRzFJTzcOfgWtha/xnw FW/udQJCGrlKlqsP1Ho6K5wSBWR1orw7X/vyq4a2reel0BolARWP3fTUsUKERgvQAE3y vApVY6rdJSh+w2W+8HFnIkvRBmIU6XUPc+BNaqaN6l64PSDk/myV4s4/AE8Wwl3WXgCw w5dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=jn2A84TyxlB9E6QwhZ/S3+QyShJtUiEedaODmn36QLU=; fh=Lgz6HPWrQ56hh0XvJM8L9Ngy1mm8JSfu13Hxu3cm6/s=; b=L79nvATPJNNaHZeDcpi4S23/N/JVsbJItAfMuKAZnTjvImMgKbZolQ47wpu6MrpuCD tQw9+qbCyyiTLKOqMPjJ+IYJj6rZ/zddQ3cD1kjzudwtSH1qchclss5+JvJKOZKNZ1L2 t7toCiq+G44xDYpf8wgo5N2/tSNJslbdHtapKyZJkn4mhZw9w3tnyprnn9t6Hj7I2Ajg kKC8YXPymxG82kfD8S2j70zUKqBRR/f2Ud7ARkB6OhZcZhNzO8STpcpquPB/ykqWQGQK u4/D+J9czNGcvguuzKsXhuM8f6aCuG1syO9EpuOFm569Bp1mTDAeYjVClev7947ESNnk 6qTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=lNzL+MZH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ei14-20020a056a0080ce00b0067a39a4c12bsi1934902pfb.81.2023.07.06.13.06.51; Thu, 06 Jul 2023 13:07:05 -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=@google.com header.s=20221208 header.b=lNzL+MZH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbjGFTpb (ORCPT + 99 others); Thu, 6 Jul 2023 15:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjGFTpa (ORCPT ); Thu, 6 Jul 2023 15:45:30 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C01791BFF for ; Thu, 6 Jul 2023 12:45:27 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-577637de4beso14083837b3.0 for ; Thu, 06 Jul 2023 12:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688672727; x=1691264727; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=jn2A84TyxlB9E6QwhZ/S3+QyShJtUiEedaODmn36QLU=; b=lNzL+MZHVE5Tf5jrUoH6qartx9zzmTGqRlIdWHCjVAbfYsp6CttNZlOBa0hRzJvZTL SocW3GJytbAfu6mxKOaeSgPA2iF9rnWdCYXvkrsIK9bHpmO7W6jRojvsd0W+wS+1M4ey Cy0yHMaRcD9qOOww9osMC+/qv3AnBllJOa6CwnAgkMCGCbzwsgDwWZB/A/DaH1aXsVkX GCRoPuBLf5rOxEvwKQVFZvVP2+nwXsMRUU4gYs9i3BpzNT/+y660I6oddp/GqxuJdZ4c ZEiHuDoHp93DRZmouI1YYfnuJreSUTCXVkXN8Tu0HBsepWhWGMKQWmvcj8W8/LXjSWTi jHsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688672727; x=1691264727; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jn2A84TyxlB9E6QwhZ/S3+QyShJtUiEedaODmn36QLU=; b=XRnI7wBs7+tna6eqSSf8YKFdjHaBYaZ8XFuWmrLap/ZYIidNxHk7EEx724yJlZU8S8 EMRNX5773nsaC2CB6eJhiYJmjCzkTDsmM0mPYKIOeZ13zh+VaHwMHqn4Kpb58rayCgeK EfSPLeFvkmA7uHo7StLgL8pLK02qOsoPNCq5IFlQBFc3qMt8FsJ3RS3MTmm7NJDhPHTn bCUMwi7Npn7GqD5w9G42J2IFhvsxA5jEbMiq7gc6lQnwhDSrG58daUq+CCvLTuLA0Fau zLX/w4Yf1P56r0ft8HdVZM5QY35mUyGiHhZcguYa0EJCMvgDFTVB8WIwWwYusulste/0 zfDQ== X-Gm-Message-State: ABy/qLZlYTXuvMk1NcdcFjl4XPQz3SLMlZw24sXsNr4PrYkjtL0VZS5e l0wmsDA4F0K4Kxw1PAjXGIdGlQ== X-Received: by 2002:a81:5f09:0:b0:570:6667:1cfa with SMTP id t9-20020a815f09000000b0057066671cfamr3295624ywb.47.1688672726798; Thu, 06 Jul 2023 12:45:26 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id z7-20020a81c207000000b005703cfc23c1sm539958ywc.104.2023.07.06.12.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 12:45:26 -0700 (PDT) Date: Thu, 6 Jul 2023 12:45:14 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Gerald Schaefer cc: Hugh Dickins , Jason Gunthorpe , Andrew Morton , Vasily Gorbik , Mike Kravetz , Mike Rapoport , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Yang Shi , Mel Gorman , Peter Xu , Peter Zijlstra , Will Deacon , Yu Zhao , Alistair Popple , Ralph Campbell , Ira Weiny , Steven Price , SeongJae Park , Lorenzo Stoakes , Huang Ying , Naoya Horiguchi , Christophe Leroy , Zack Rusin , Axel Rasmussen , Anshuman Khandual , Pasha Tatashin , Miaohe Lin , Minchan Kim , Christoph Hellwig , Song Liu , Thomas Hellstrom , Russell King , "David S. Miller" , Michael Ellerman , "Aneesh Kumar K.V" , Heiko Carstens , Christian Borntraeger , Claudio Imbrenda , Alexander Gordeev , Jann Horn , Vishal Moola , Vlastimil Babka , linux-arm-kernel@lists.infradead.org, sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 07/12] s390: add pte_free_defer() for pgtables sharing page In-Reply-To: <20230706170213.2ea63606@thinkpad-T15> Message-ID: References: <54cb04f-3762-987f-8294-91dafd8ebfb0@google.com> <20230628211624.531cdc58@thinkpad-T15> <20230629175645.7654d0a8@thinkpad-T15> <7bef5695-fa4a-7215-7e9d-d4a83161c7ab@google.com> <20230704171905.1263478f@thinkpad-T15> <20230705145516.7d9d554d@thinkpad-T15> <1014735-ecc4-b4bc-3ae7-48a4328ed149@google.com> <20230706170213.2ea63606@thinkpad-T15> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Jul 2023, Gerald Schaefer wrote: > > Since none of my remarks on the comments seem valid or strictly necessary > any more, and I also could not find functional issues, I think you can add > this patch as new version for 07/12. And I can now give you this: > > Reviewed-by: Gerald Schaefer Great, thanks a lot Gerald. The one change I'm making to it is then this merged in: --- a/arch/s390/mm/pgalloc.c +++ b/arch/s390/mm/pgalloc.c @@ -455,6 +455,11 @@ void pte_free_defer(struct mm_struct *mm, pgtable_t pgtable) page = virt_to_page(pgtable); SetPageActive(page); page_table_free(mm, (unsigned long *)pgtable); + /* + * page_table_free() does not do the pgste gmap_unlink() which + * page_table_free_rcu() does: warn us if pgste ever reaches here. + */ + WARN_ON_ONCE(mm_alloc_pgste(mm)); } #endif /* CONFIG_TRANSPARENT_HUGEPAGE */