Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2903334pxb; Tue, 13 Apr 2021 13:11:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzst3pXDHTLCagcqkVQYujocrHb7WO7F8VLQM+6ezlxmAw5TG1ZjCZo4VkZoD3v1XdDlqjO X-Received: by 2002:a17:90a:e28b:: with SMTP id d11mr1818696pjz.53.1618344668466; Tue, 13 Apr 2021 13:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618344668; cv=none; d=google.com; s=arc-20160816; b=DYT+NNjUoSI2m2/hlhZnNTKmsQL5NlnSvO1bDgjRxvAoN0ueq/QW+Xma+ZMJBDQNXr LDvrPUzHFPgs61CB4phW9UpEm5ZvXwneX4RDetgCfvArBFvqd09aXcAvUz0PVsaSkn2x r1hymDtPc0uzAVSAn+eqam2l8y55NWriER9O0xwGFIZ7NDiAJewwZRY4U06phdtJe8Kz r4A3OakAZa8Up3CL782nDSPaMRfJ/OaS81NaZjNDgsnScVKs7wVtutqH8O2cmyqq62T1 ehiUcD7GGPBoN0uuxgdzu93zqb7D0s76TiAKlAzVP/ToC1BUQKEzMNcpWtbgYW6BgC0+ +JKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Z8E4aJWY8S1UewlX1deTBL/TSfNjGfLKOGHhOfD8DdQ=; b=y0X6djddpOtC4B8dp76ermf3D3u5leeQcu4YHMFgF2F9XbTUDrempij/hEXetwVvvP Dzo5m0plpD92pExaFV1mTpflUZjtmk/e8TjJMY7G2bmi1ot8XqFypPCDDGITtZ1lv4MP S4oJvhar2nz1hlLmFu4UUp+Og/lnoCwokXlDCZKoeLvQcfTfPwXRllSFGV52pqchTb5v JIxVO2PIssCJ3txE0JV65byZOyuAUoUNJC/l6ErVfw+45Bsk/qOJlaKtJuQEfGTw3IEq agHf3IFJykaumGWSGhy4MLxVvokQsHbTEcwmPVijHIQbSoNjmpxaT5yLvso5exegaMR8 slHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wNEgu565; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si3910412pjl.67.2021.04.13.13.10.55; Tue, 13 Apr 2021 13:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wNEgu565; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229899AbhDMOTb (ORCPT + 99 others); Tue, 13 Apr 2021 10:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbhDMOT2 (ORCPT ); Tue, 13 Apr 2021 10:19:28 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E081C061574 for ; Tue, 13 Apr 2021 07:19:08 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f41so4244121lfv.8 for ; Tue, 13 Apr 2021 07:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z8E4aJWY8S1UewlX1deTBL/TSfNjGfLKOGHhOfD8DdQ=; b=wNEgu565JVChQOzqfu7VI4YMq9rsnsx91xg5exzQG4fW8BhPE9txEfAZNQXtJ6eguF QcePnkqE22FvS6FaytPrXYAvwp+kIPYuMuVwkzo1GEHTG0Mt4xLqwioGDVoAZtl/i/pr NgAjV893s9/nqObtXpgFP4Sv0Qdp1kMqwhW/mtN6B94EEWGF4NBz13U+VkDE4HjwnTGM jbLe73Brwf75Jqml/0fYWnXJ1AXfBALl/98zgVDvMrrXTC0DKS22seqxXgqd+sb3Ydma vT6OKSqnzY25RF9UmXy2rH2rymrl/4D+WPiTzf8M4SH1Q0bbr6THv5ALayWkD+XCzjzV oZyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z8E4aJWY8S1UewlX1deTBL/TSfNjGfLKOGHhOfD8DdQ=; b=cTV9vorF0TBgXsFh5gsnJLIe9y3LRdqo7Xk8BXNXpQ3qpo/wmM6e8gunQX8/goBwaj GKyuucFqUyQ/T45DBRD58N94/Tk7Arc5UOL+zYEPde/V98RAlk7pkMHWb9i2ie7Ny6DG ugpgsIjU9tztrmNaEv5t2P44Tf6NC1iqet2rADYvU1b6IfzFMNKprCcSIvkc9fPKFCEr qy93brESMZYg0OxCyCn7ddLSCMREt9GN7pHU1BgSQ6bZ457IrN6jF1UzLRfYXbFPR0m5 RvBE3p8LGIeD4GKzOpCwqJkS75XF77uPapvPl0y4mf4bwStkU6f80Sqb5Wi1iWGl1aaG /8Rw== X-Gm-Message-State: AOAM532N6zoUGjmv9T5qqCWblWRK1Gmh/OViN28vRbnq6awc4Xe9DKiK 76wC6ZwevdtW4I4dBbjTSio1T0F6hrKqzRjYTCUP5w== X-Received: by 2002:ac2:546c:: with SMTP id e12mr8204910lfn.299.1618323545033; Tue, 13 Apr 2021 07:19:05 -0700 (PDT) MIME-Version: 1.0 References: <20210413065153.63431-1-songmuchun@bytedance.com> <20210413065153.63431-7-songmuchun@bytedance.com> In-Reply-To: <20210413065153.63431-7-songmuchun@bytedance.com> From: Shakeel Butt Date: Tue, 13 Apr 2021 07:18:52 -0700 Message-ID: Subject: Re: [PATCH 6/7] mm: memcontrol: move obj_cgroup_uncharge_pages() out of css_set_lock To: Muchun Song Cc: Roman Gushchin , Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , LKML , Linux MM , Xiongchun duan , fam.zheng@bytedance.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 11:58 PM Muchun Song wrote: > > The css_set_lock is used to guard the list of inherited objcgs. So there > is no need to uncharge kernel memory under css_set_lock. Just move it > out of the lock. > > Signed-off-by: Muchun Song Reviewed-by: Shakeel Butt