Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7773847rwb; Tue, 6 Dec 2022 09:39:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7SHQJa6vP8sLDhEmnL4Gfqf+P/MV3wvEpU9HXi5pH5jK9XFt1PZmqjx1jYl5y51cRrNdEZ X-Received: by 2002:aa7:c256:0:b0:46c:a1f7:d9b9 with SMTP id y22-20020aa7c256000000b0046ca1f7d9b9mr9564217edo.168.1670348356104; Tue, 06 Dec 2022 09:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670348356; cv=none; d=google.com; s=arc-20160816; b=QVvCAhLdrtP2V61dAGdG20GNIt4K0cuIneOwpaAAiRvU+FIFF893zEwDdSkzTR1wL5 Xfl5uBEVKY3ZvjHQmVaUnhJ0HKS4+BVxJ/Ijs117veqdr5k1W6N6jYbY8/Gk7dIkt13h xsc0Aa5d0NtbXwfJ+R/8N/w7EzQYQ2h6hMuFRUU3FFpFqEhEasF9rI3zRDgNsPJnd8s0 iJX+gF4fvjWZgZ9IVgn155EoHuESHdUD8gbEti0KzvEi/vjBDIUrovZ5Iuk2iWXHoUYn jpl1UewoO9Ce+t2mzqL3Lf32719MekQKDMGpj8JrKwhgyeK/27JP9o8/je5Pb+4xQQFy b7Vw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aHW4AF6UbouyjsoQjAo93Rw4CHPKsRNQFiH676IJZhI=; b=Gr4DGWhvwDSITWTrmlmL/xB1oeUedMSbVwoN7jpIafirbGty3jt+8d0/Jpx5h3jXdp fkiRG+uy92FXEnxKMoj1UrbnbR4xmR56ZHfEVDMT8xb8cLhJnB+tC7tR4heDq84LVwMq MV9vH1hE0TS93BXa5w/+tVk264R+v+DaCBB1nMBmGGM9Nbi5iBIOIg5sZRYAl9Ngr2qz iP6LHd7UawM1CJc9UpGYdBzaJ9VlvGx1djudydkBjLJV0I/JOtgG/hJzb8EzEoBFqB5d NPO+W7fcgTwTQQ9XqHwsl4CS/PBKBxpeeKX2aJQjxjN+/JA716mUnMi3/EhN+yleYmRJ PgSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=U3JPE2wp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y25-20020aa7d519000000b004697dff9638si2168829edq.87.2022.12.06.09.38.58; Tue, 06 Dec 2022 09:39:16 -0800 (PST) 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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=U3JPE2wp; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235714AbiLFROJ (ORCPT + 77 others); Tue, 6 Dec 2022 12:14:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235710AbiLFRN7 (ORCPT ); Tue, 6 Dec 2022 12:13:59 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01FB4326F7 for ; Tue, 6 Dec 2022 09:13:57 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id vp12so7808691ejc.8 for ; Tue, 06 Dec 2022 09:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aHW4AF6UbouyjsoQjAo93Rw4CHPKsRNQFiH676IJZhI=; b=U3JPE2wpoXJXzygCbWmscmBrgC7FK5UJNHsQONmaGZiZmH3+sgAYjnYd5Ls05NwlQM vONDSCbVwBJkvD+yFM9ZlH2UrOXI+N1akE2rtdo0FhyTxLbcXJNrdp0P8+pXIposb+UE IGcNcfKz8Y8mljOCpJv3hMRSWaepYsKExZQ89Ffqglmn9IibZIsuj3nOEpTrpsOKREm8 f5yPVKxG2TqfCm71/bP+FY8Zs7eq1s5zzjEyw9tPwFRlJlN4dRk6a6hyVJyj1p1wafID e4W96vxjpUtly6cSO2Kh3gkhCt0wDtzy0xrJ0UNTk96w+7FtOjPNllJxXrMYRQbjBwzd 7Ijw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aHW4AF6UbouyjsoQjAo93Rw4CHPKsRNQFiH676IJZhI=; b=3yYYy2G0w/uu10t+zNuSmAU9VeS7QIETp49jC4loj4eEZ16ApBjwAlBlkz4CDCKRkB JNdShAr83172msKAoyP0gtWAqkcBPEF29wrkBVlHDYhVjLsQtNkE9/mTyb1/6muFLyNB 8vI11YlfHw65eUTfk4dWKzCusudrTmY2SgscuRqCL4MSgtT8WhFs+Qh3RuR29C7s/GGp ipkGmbURnZiFo85IGROd9cU4k3qg8F5KIGR/QzuqGNFqAHpraXdCsEtago2VYGd42siX FJSt2PjY8JZU+XEvRDEowTicvseLV/zp3OVmslxGlENG4VaUfAtUg1Fx4I0YbiYDTzl+ GfJA== X-Gm-Message-State: ANoB5plw2PqiX0+SKrmgHI61kuzMphZ4c3/5PZGiKR8tYhOm6KqVF22r 5AuFCjr3AYgmp3LL2VwiuI8JPg== X-Received: by 2002:a17:906:a107:b0:77f:9082:73c7 with SMTP id t7-20020a170906a10700b0077f908273c7mr56670721ejy.517.1670346835640; Tue, 06 Dec 2022 09:13:55 -0800 (PST) Received: from localhost ([2a02:8070:6387:ab20:15aa:3c87:c206:d15e]) by smtp.gmail.com with ESMTPSA id iy17-20020a170907819100b007c03fa39c33sm7515048ejc.71.2022.12.06.09.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 09:13:55 -0800 (PST) From: Johannes Weiner To: Andrew Morton Cc: Linus Torvalds , Hugh Dickins , Shakeel Butt , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] mm: push down lock_page_memcg() Date: Tue, 6 Dec 2022 18:13:38 +0100 Message-Id: <20221206171340.139790-1-hannes@cmpxchg.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 New series based on the discussion in the previous thread around getting lock_page_memcg() out of rmap. I beat on this with concurrent high-frequency moving of tasks that partially share a swapped out shmem file. I didn't spot anything problematic. That said, it is quite subtle, and Hugh, I'd feel better if you could also subject it to your torture suite ;) Thanks! Against yesterday's mm-unstable. Documentation/admin-guide/cgroup-v1/memory.rst | 11 ++++- mm/memcontrol.c | 56 ++++++++++++++++++------ mm/rmap.c | 26 ++++------- 3 files changed, 60 insertions(+), 33 deletions(-)