Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1081096imk; Sun, 3 Jul 2022 16:51:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uN+6buIYG2N0OZgN5TM795ioNcld6BGZx3ZZZ/MTS4Z1PqULkKt1+MFkMSmoZ0uy35cSNR X-Received: by 2002:a17:902:d490:b0:16a:7cf2:a37d with SMTP id c16-20020a170902d49000b0016a7cf2a37dmr32287020plg.155.1656892300717; Sun, 03 Jul 2022 16:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656892300; cv=none; d=google.com; s=arc-20160816; b=1F35QByBvnPX8Cm4b4p56gRT4AlCmI4RNl7b1Fo7caa1TccQusR6xr3PPyt8c4xUHu jdr8Vw4LlpFnFWvgQm3i0SdjR2jclYUtqzWP0dPNdh1KAw4N2z+0Bkpjt0hgkUxthE9r MKvLYLzSvV4+QlBKCexL5emVFCavdpOB7WotmwihAuW6ohKmFW3EdDfKIgM6Rt/1qXw7 PgmJhn/Mfiz8nDVv2OS8grQsFXL+s8hMsPWmGzmdVAAlRzpJwAN5iKDZjDDFNN1iG8Zz sAgmUSfE9yTswIVQHF5GeR2Q4yUYT5Sxy874aFTjybnDMUY/SrQp0MjApzxw3GrfhGv9 /CTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1P8/Q78HutngQLDVF0+WeVp5Tfo7jS5ZgakZEOPxW2I=; b=icBAMN5ezdDIhDBNHwpvuREhnMj35KZ9YdTkg+a2DZbh/L/i38fagjs7hS+IzZIg0w l4mJRsGHAOGJ6YgHbz0g2zRTB1pIfbTssdvcw+cSd0wbWcQlOPjW5Ey/vxNc7yFFG0ur mzXjt72462phYEBCES8wk6G3qnhd6Q+jU6Azr8Faso+6HRxo3+6UB6UYbh+zOYtGHI/0 PrJGy9d4etCQt7sagdlSA7HuLSizIGR50KJLsdUo7xUrlTuvEIp+k1ajqW4t9T9V5Iqt R9BpnRN8pZzm2cNhE/Yx75kTNIBQuwRn0xhzhVFJ8vvezuSXou2LS+tiwuvKTrf2+L3Z tyug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=opkLcsOP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a170902ac8e00b00163eff0e71esi9559364plr.572.2022.07.03.16.51.29; Sun, 03 Jul 2022 16:51: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=@linux-foundation.org header.s=korg header.b=opkLcsOP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232678AbiGCXfg (ORCPT + 99 others); Sun, 3 Jul 2022 19:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbiGCXff (ORCPT ); Sun, 3 Jul 2022 19:35:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D605FF3 for ; Sun, 3 Jul 2022 16:35:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 536B3B80CE5 for ; Sun, 3 Jul 2022 23:35:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B843BC341C6; Sun, 3 Jul 2022 23:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1656891332; bh=HZril8bI8S7GwL97fvRQZecdLwnEvyV43EQQe4DOpCw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=opkLcsOPDkzd81C0RtLgvAyPDNTJ3CJDvP3+isfxMImLJAmJ3pYWMz1T8TRxS2hy3 KG75/iGZ2NcV1Qp9GTlASlgxpp1gjaQaVgscixYacs9mZBGQON0VwSdxImVN4Ssuii SxxDzYI1DmakLx+r+Zs4yEbKvgt+fixkoxQBsMqc= Date: Sun, 3 Jul 2022 16:35:31 -0700 From: Andrew Morton To: Yu Zhao Cc: Mel Gorman , Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins , Marek Szyprowski , LKML , Linux-MM Subject: Re: [PATCH v5 00/7] Drain remote per-cpu directly Message-Id: <20220703163531.beed10c723f1c74a9001573c@linux-foundation.org> In-Reply-To: References: <20220624125423.6126-1-mgorman@techsingularity.net> <20220703162821.f097d6e4b3e2a0114820a8d9@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sun, 3 Jul 2022 17:31:09 -0600 Yu Zhao wrote: > > > This series adjusts the locking. A spinlock is added to struct > > > per_cpu_pages to protect the list contents while local_lock_irq is > > > ultimately replaced by just the spinlock in the final patch. This allows > > > a remote CPU to safely. Follow-on work should allow the spin_lock_irqsave > > > to be converted to spin_lock to avoid IRQs being disabled/enabled in > > > most cases. The follow-on patch will be one kernel release later as it > > > is relatively high risk and it'll make bisections more clear if there > > > are any problems. > > > > I plan to move this and Mel's fix to [7/7] into mm-stable around July 8. > > I've thrown it together with the Maple Tree and passed a series of stress tests. Cool, thanks. I added your Tested-by: to everything.