Message ID | 153063062118.1818.2761273817739499749.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4739660325 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34BF028B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2899428B58; Tue, 3 Jul 2018 15:10:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9130B28B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F05D6B0285; Tue, 3 Jul 2018 11:10:30 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2C6FF6B0286; Tue, 3 Jul 2018 11:10:30 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B6A06B0287; Tue, 3 Jul 2018 11:10:30 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id CC3236B0285 for <linux-mm@kvack.org>; Tue, 3 Jul 2018 11:10:29 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id b65-v6so1367686plb.5 for <linux-mm@kvack.org>; Tue, 03 Jul 2018 08:10:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:from:to:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding:spamdiagnosticoutput :spamdiagnosticmetadata; bh=MLOWrs0VGv0IenUkzoSttLkZoveSYYRT75RUexG2KNg=; b=mSYJAByMbjYjlEQTrdjntcA/32+1JwvyosEZtzFZMg8JCVtl6KpQ+HvVdK+8CJcfpN 0SEjviO8WXNyhxg7549EOtMTn4yZxURt577aNJbs6Qi6Y86NyFGEOJwysYu+7aWN8M6t LGfu6kvA+M/7iiw4oKdrZSQoMiXj72djh+fX6SUPu8/8N9fnHXXv/b58Td9cQXn52n1y yEQLvdEi8JJ3qWUkeSZ0gqTmreetgCof6BEcP8Zo9Q/mwNkYlTcn1KXY8c56g7svHpjo XwQWB0moXsLScKATKuzQXsyqyTZUV4EGcH2cqZ8fN5g5XDrADoRfyxt4snMiXVQE/Xx8 zPzA== X-Gm-Message-State: APt69E2Kc2yxj5YkL8So6MiDXJ80tjgwTXk6DDtDMNmL3phNL1Tb7X+i L7HhK2A7fQItzjlLdReRtqVGJo/5gaq5zwkuTxeBgHrSoG7eiUys5/7pon3pl6slInetZY9HlWx BRaVCtj8xV6pULGOKV2BqLXUkBLw02IxuZvYhLX2c0hhdp4YSJVq6wOOYyyU9drfmqA== X-Received: by 2002:a17:902:68:: with SMTP id 95-v6mr30496497pla.178.1530630629521; Tue, 03 Jul 2018 08:10:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCadC2V9XEx1CqNkOfd6VjtMEshGIpR+vupAWhr6O6GSEX35eyEvO10se38SMsLAcPuM3l X-Received: by 2002:a17:902:68:: with SMTP id 95-v6mr30496433pla.178.1530630628529; Tue, 03 Jul 2018 08:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630628; cv=none; d=google.com; s=arc-20160816; b=mDpWc2Rx3liLw9VKhhDob5z8/+XIAs0xLd9FVUtJYqVV8SxYV/NKIYucEOtO3Jz++Z Mv0VhlV98PrEKmqIDzwPWVL+Nfti4JdFBIJ6OcNY573Yw60Ed6fUjTiYH6p70ysfWIF7 YygWf1t6u/CIxovfan2iUTp4IakTJYSb9XKoWpT7cxlUARV64Q9xJCIis5Xpt/tZ3do6 Zg36pMrUQjpgLAAldQB2ICViys7ZxGPyi+Gccg6IHEN30ueRgAOnvVHb7MhtxEErKgA0 i0NhMv5bzyDboE7X6m4u+4AQfInmE4zsLwyJFRrKYm3Thn53x0rkCtw7G82As5o7CtEd FqsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:to:from:subject:dkim-signature :arc-authentication-results; bh=MLOWrs0VGv0IenUkzoSttLkZoveSYYRT75RUexG2KNg=; b=sLa+EE77tDxF7fxPipBp2T+WfoxrSZcIF6BNfG2pG76UU+w563/MP5B4QOAub1UI9n Ed02q0DKaX58Phdb4FE4s/ngAVo82FEYqseqRZKF+zGbnz7+mmBwe+6VddYPHmLDJ65T yBIDIybllyy7Ytesa7qFxYGmedEfgMPhO9wGQIoW4YYClIRUAjsvTvCRL79yYO5sdC3c lLTR5lBm7DB3Kzq2qPNuJLrjOelwQ+WodYIO8PmRgMK9Gf2KV4hFt5S6O7Gk3nJdR4yU Z0tk3zEBl+sY49byMkWvxLk48iKXjC/mMYF0TYi2CBk3Kst2McdZ6iFjvm3T7B3K2+8+ v64A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=DJhMwElZ; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.103 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0103.outbound.protection.outlook.com. [104.47.2.103]) by mx.google.com with ESMTPS id s3-v6si1295397plb.394.2018.07.03.08.10.28 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jul 2018 08:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.103 as permitted sender) client-ip=104.47.2.103; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=DJhMwElZ; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.103 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MLOWrs0VGv0IenUkzoSttLkZoveSYYRT75RUexG2KNg=; b=DJhMwElZLc3PLrW7sfVRD1mJtp7jJR/5j9jiRLyboGELJHNXoYbg+nga470abmoVfTLW1+nNiIGC6n0KBycCYh4J03eoRsfX8zskvHs9YyZQRjfOgBFVt+4unZ78oCDtua8WDE+IuBOBMkVInRlbgsRO46UQPC3pGawYSK2esb4= Received: from localhost.localdomain (185.231.240.5) by DB6PR0801MB1334.eurprd08.prod.outlook.com (2603:10a6:4:a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.18; Tue, 3 Jul 2018 15:10:23 +0000 Subject: [PATCH v8 10/17] list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node() From: Kirill Tkhai <ktkhai@virtuozzo.com> To: vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, lirongqing@baidu.com, aryabinin@virtuozzo.com, akpm@linux-foundation.org, ktkhai@virtuozzo.com Date: Tue, 03 Jul 2018 18:10:21 +0300 Message-ID: <153063062118.1818.2761273817739499749.stgit@localhost.localdomain> In-Reply-To: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> References: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: VI1PR0501CA0028.eurprd05.prod.outlook.com (2603:10a6:800:60::14) To DB6PR0801MB1334.eurprd08.prod.outlook.com (2603:10a6:4:a::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b82ac58-213c-4393-caff-08d5e0f71b51 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1334; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1334; 3:6i6srBGFR2xx5K6tMstXgFkqwXY6w6fiF3h57zkkwkjNO4z9nXjtvVtpWOZ3ugo2FfuDUQS1+j94bvXX/gjK9svX1olrR6L5e7ChgTuG1/8EnmquU7ovqhJ7exAb66SYykhbSQrrzyN95pB+grOh8LfcdjNrEB33/S03o8UquFGDMm2OJ8skF3uWoZLRvzQzOY8fPcu8SS9cMuRYEyLaZZ5P2etsgjS2UVshMTnYXNtGGmTsMthoVEgg4vsikyTm; 25:pJEt6Xd+M/GfovNDCUFCjNWG1y0o3jOTsl2xbzZ16ZqvQN29WTI9JxONeB1/GOeALWUgUC02rnIylqjApytBYpYhjhZYoqvlT8qjZ0H085mAtYh4Cp7Lctw2ZwXmWu9Dn85kVwHmK7lFCqHxKhtfb0lyNrK8dpkjx5e0polz9mDAtQto+sGlwKmP9ZAtk+yTwpRjpKBmdBkR5mXzngqmj3elb6guix2aElxXw+MYCj1wpLIEF2z2fhue8ctKuj7qsDQLCHAqI/I0mbyAYbn1n9qgaC8TEgAbrfddKYF3KuCqtZfBDhR1KfmU4lEVkcYJR3F1CvcCCaUw2tttc9iogg==; 31:cjRmabVwOHDXJCVTH7fD0o6Kgr7ICq39pgbCKHfC2Xpal99a5B6axJKBTwAcXomIVmBzwQmQAOf0lf1yPekyVvNd4u7RuANXxfBeIiVGK6k5SXne8fNn/8/fD2p8KmiOzWM1a+By3Bf3m26Z9tVwCQxGfPypppabR78ihljB+Ow3mbaDIqtteeiac5DYRHq6LZZKqy7ioVHIsdZCRxVD23bDgI7JWA1kUczbpNOebPw= X-MS-TrafficTypeDiagnostic: DB6PR0801MB1334: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1334; 20:rTqvRE7A0LiUyfgKvzsvIQ6bwzfGFlM7Rs9nxrNzYwcnQFuXEXwO7x2P4lQ9PVr2l/Cqa+rgEkjShPRrcVygjvr105j/v0vRrSATpeTqwR3902R6bqXdpxxehtRlJihoGbZaeJ7NmCD95wfm/rgCulqw30rPOTAGKiU2ZVTKGqqb06MM791eY0UuxOsVkxMP82Tiol2qJjZsnBTJdm/BvO8Pgb5kljOa2D1DAzfPazcWEqahtwrHtq7n/BmPU+qikRj6iEAG4cGoq6BYAxrPAlPjsCyVcfYkvc5ZnPpQsmdkZlTdMabJYjiS3toDYbzuTUw3dWVd8qEF24A+y821r8iAD4RCWv3Tv9H/boijY8ZuxPqP8VlxEXdYnSBM2YnnWfcAWl3euMaxCRPvWuCzM9Pjz2ef3dVUlrfiOI6cy4A0y6q0Zn2rlw6w/6nT1Akj5vy0wak5nwl7QZcXRRm2FtdIQjBYgUJlJqwg7pzvqTVNGn//LnDOn2VmGZVdFlpF; 4:wutVvZ2L97Oao1XQSaQ+XKXWVhNIiI4bZDxAb3xJK69T7VtIs5nwbZ7tYsuxQNUrEYT8uY9RT9oFSVK5iKU0hNADYEx6ZuPK+ehpO4LmhsJYLowfrwOhvEkeKx6gByyH396aSA/f36kp2mJSzi2shTz/qRB1HvLAK3wp/B2zMq4KjucSc1RFdeovbfx3T1rubWKSBueqJql+yzc5g5v8nVq5pAb/im5Yu5H7kimr+4Pp3NUmEKGxyJ4h0Nzuv+67puHEHEHkAtIP8Z9aAHnFzYTFIfHWqX9ywXwgv/S+alt4EbxHOeQCJB/3QFG125sZ6z1yNzbxe/+Y+r3DWxpRh3M+6WixsLtjg677oZjgu0GOsD8gguwrJtA3coUbdE3o X-Microsoft-Antispam-PRVS: <DB6PR0801MB13348AF91170185272D0135ACD420@DB6PR0801MB1334.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(211936372134217)(153496737603132); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231280)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1334; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1334; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(136003)(376002)(366004)(396003)(39850400004)(346002)(189003)(199004)(53936002)(5660300001)(39060400002)(6116002)(3846002)(106356001)(23676004)(316002)(2486003)(86362001)(478600001)(33896004)(7696005)(105586002)(52116002)(76176011)(7736002)(50466002)(8936002)(305945005)(7416002)(81156014)(81166006)(230700001)(386003)(25786009)(2906002)(6506007)(8676002)(66066001)(103116003)(68736007)(97736004)(14444005)(486006)(26005)(186003)(956004)(58126008)(16526019)(9686003)(61506002)(47776003)(55016002)(446003)(476003)(11346002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1334; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjA4MDFNQjEzMzQ7MjM6Yis1eTJLemdwZkFjK2xjK3R5bzFPdjc0?= =?utf-8?B?RFh4QkpBUUhkbmlDNUVIZW1ya1o5MUxIbEZYRytLWjdydm12bndMK1QzcUZy?= =?utf-8?B?VitObW9FTjErTW9YNzdVWmpuS3htSHNWRnFMTUpVazY1anY1Sk1kMHhlbkQz?= =?utf-8?B?Q3dqdlkvOVI4dVFZVXR4Y05zcXc3b0F4bXg5VlcyekpLRjVmenJ5U1N1NFg2?= =?utf-8?B?cGs0QWxzaDE5eTlINnpEWTdSRUErUVBXaG5ITlBoRWlmKzlRVkY0SmJXaGxX?= =?utf-8?B?ZkNOR3lVY1V3QkcvY3dTU2F3K2pNQ283SEUzQUxZK2R5cWI4cFpsYTVhbFlN?= =?utf-8?B?cWpEZHhzUGVXeVRSdGUzTlUvaE9jeC9HMzlUZHVYWkorcUlUVGZmZ2sxVzNL?= =?utf-8?B?eW1wWDRHMThvSk5kWFZKRnI5bkx4aUtTNXkvZz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atorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 15:10:23.6190 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b82ac58-213c-4393-caff-08d5e0f71b51 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1334 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h index c4cdda4dffa0..144d6d70320c 100644 --- a/include/linux/list_lru.h +++ b/include/linux/list_lru.h @@ -70,7 +70,7 @@ int __list_lru_init(struct list_lru *lru, bool memcg_aware, bool lock_irq, __list_lru_init((lru), true, false, NULL, shrinker) int memcg_update_all_list_lrus(int num_memcgs); -void memcg_drain_all_list_lrus(int src_idx, int dst_idx); +void memcg_drain_all_list_lrus(int src_idx, struct mem_cgroup *dst_memcg); /** * list_lru_add: add an element to the lru list's tail diff --git a/mm/list_lru.c b/mm/list_lru.c index 016c7d3924e4..467820201e2f 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -515,8 +515,9 @@ int memcg_update_all_list_lrus(int new_size) } static void memcg_drain_list_lru_node(struct list_lru_node *nlru, - int src_idx, int dst_idx) + int src_idx, struct mem_cgroup *dst_memcg) { + int dst_idx = dst_memcg->kmemcg_id; struct list_lru_one *src, *dst; /* @@ -536,7 +537,7 @@ static void memcg_drain_list_lru_node(struct list_lru_node *nlru, } static void memcg_drain_list_lru(struct list_lru *lru, - int src_idx, int dst_idx) + int src_idx, struct mem_cgroup *dst_memcg) { int i; @@ -544,16 +545,16 @@ static void memcg_drain_list_lru(struct list_lru *lru, return; for_each_node(i) - memcg_drain_list_lru_node(&lru->node[i], src_idx, dst_idx); + memcg_drain_list_lru_node(&lru->node[i], src_idx, dst_memcg); } -void memcg_drain_all_list_lrus(int src_idx, int dst_idx) +void memcg_drain_all_list_lrus(int src_idx, struct mem_cgroup *dst_memcg) { struct list_lru *lru; mutex_lock(&list_lrus_mutex); list_for_each_entry(lru, &list_lrus, list) - memcg_drain_list_lru(lru, src_idx, dst_idx); + memcg_drain_list_lru(lru, src_idx, dst_memcg); mutex_unlock(&list_lrus_mutex); } #else diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f81581e26667..510c435a15dd 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3246,7 +3246,7 @@ static void memcg_offline_kmem(struct mem_cgroup *memcg) } rcu_read_unlock(); - memcg_drain_all_list_lrus(kmemcg_id, parent->kmemcg_id); + memcg_drain_all_list_lrus(kmemcg_id, parent); memcg_free_cache_id(kmemcg_id); }