From patchwork Tue May 22 10:08:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10417867 Return-Path: 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 EABFD6053B for ; Tue, 22 May 2018 10:09:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA5E728A49 for ; Tue, 22 May 2018 10:09:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE27228BB5; Tue, 22 May 2018 10:09:18 +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 280DB28A49 for ; Tue, 22 May 2018 10:09:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 170A56B0007; Tue, 22 May 2018 06:09:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 146886B0270; Tue, 22 May 2018 06:09:17 -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 F02376B0271; Tue, 22 May 2018 06:09:16 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id AA5E66B0007 for ; Tue, 22 May 2018 06:09:16 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id e3-v6so10953781pfe.15 for ; Tue, 22 May 2018 03:09:16 -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=TNPecHzRs9Cj0fn+lmkpuVlRLxdr7wR25lqhseaZ4lc=; b=d8Iq0KKXIT09TW43D0j002jZFkBEgFcEP7EPcKQOaiq/lgiwi/JqDIQ6czHg7RMfnm i8zlVQr4mB+VovPacloV+IX47xEB68EwvJnaXP9neeZkqcK0pJodk25h3ItHWRXorB0I 1QcvQXG5ZXXPDu+GmAECv1t0ocpNGvdgYSIbLiY1rURFLJ1kcOzb124NFXiTE5ckFaaF iE5Ur8kCO6XD6FWmItDRJTVG3hVSylitqaUeNQ+369wSKoib6UvSqiwSC4Sy4PQMFXwJ MwPMk44NP9Ekr2csngoDUFLDZBMIwBoRtfTWCvjI4myKER9As2Ul3ygYUBvXMUz0Ljup JZZg== X-Gm-Message-State: ALKqPwf5jE+Dp1Cbe12S9tJTStljN+snbyB7uPjQV6khr+Y3M9nvd59i Ytv+a5qDGP1BzL+7WK4kwNKiMOMt7Th/JOBzCPrpCu3f7BhGQ3gp/B+etHwDVD372gnKOZSWRP0 /DkSI04EUPQPXMgb523l1oXKyhyFA/1nGg2U7sGZCAcYgM8OpIq1U9Pwu9anAjutxgg== X-Received: by 2002:a63:3c0a:: with SMTP id j10-v6mr1743452pga.144.1526983756355; Tue, 22 May 2018 03:09:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4eUgxiZQaEDIKH46Ayt+5LnFqXHECP5J5tvNTsInn8MBO0D7aFW/B8d54Ql3qZg6z3Z1N X-Received: by 2002:a63:3c0a:: with SMTP id j10-v6mr1743424pga.144.1526983755594; Tue, 22 May 2018 03:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983755; cv=none; d=google.com; s=arc-20160816; b=PrMH+pVAqAJb+i3PwV/xCQ40W8jAAvaIJbiVfKh3CGZFAwe2BUrNXC1v1ZhiUjcYEb GfM8QN/7ZAAZVhaHracRCdBBOCmVngshyaOXek9s41nTrxB9napld+jacZEbWMW966tD rZ60IJGt8pNW7fBKPIWJQUcMGs/Kl9fjYaO8IjX9E+iAdOTzElFahPWTw4pwJhrmK78Q ofkZiNDLmpiBkPgMuUGV5ryNIf+TFanAjeY/fS+lW5pyxhnH5DYxgnAGt0tuuBCjWJwc Cg/1XBfTq1C0GD5VkiGKOpvAcg+wp4mV5UPSJGZT2nnIIGxMTRfRQt/maFqRHzDZRDEv zVlA== 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=TNPecHzRs9Cj0fn+lmkpuVlRLxdr7wR25lqhseaZ4lc=; b=ZrcNEgB/oqg6Qx4rtg1xaJp4kykHAlpIDEMFPnrmUl02rB8yUAM5vXpaYpEmUYQrRI WXLVm1dogiEGZun1d1WVYtQZhT/8+yPXxPLo9F2Q9SEJQZ8Zo3I8UXwltpg3R6VmpxqE WzxRTtey3NZ06GHS+kBHMeLA/t/srRbBCgPYoEONDj3RUkFqekHSA6IyCmuQ1mTT0EoC wliPWJehPq+GccbCZwKNiA8cmU8ZpZeZT+Jb6Z+uxBoWtWsD60XuQ/guJ8p8EfO6dryX VThd430WCRcbo22hhJbf9WL4PYIS3kWK2+Nbyp16nI1E8VslZoWmszVF/nG64R+uRcDN 8xDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=RLt4UcQ+; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.94 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40094.outbound.protection.outlook.com. [40.107.4.94]) by mx.google.com with ESMTPS id q137-v6si16664556pfc.68.2018.05.22.03.09.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 03:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.94 as permitted sender) client-ip=40.107.4.94; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=RLt4UcQ+; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.94 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=TNPecHzRs9Cj0fn+lmkpuVlRLxdr7wR25lqhseaZ4lc=; b=RLt4UcQ+L1cqKeVtrKAKxeoSG7gmk1xROUQV4XOqRQOzGp7asvplzpMB9MTh8Uz/OvMy0KSO3N15hsOTVm7Dc6SRmMoIKqw8s9pnSdWqZgX6vXrM1Wf5Yd5ajP+ikVlQn4URFJRqmZd+M+fK/PXfgEm9TODKR1c2ANIlqwfE8Mo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by AM5PR0801MB1331.eurprd08.prod.outlook.com (2603:10a6:203:1f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.776.11; Tue, 22 May 2018 10:09:07 +0000 Subject: [PATCH v7 10/17] list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node() From: Kirill Tkhai To: akpm@linux-foundation.org, vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, ktkhai@virtuozzo.com, 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 Date: Tue, 22 May 2018 13:08:59 +0300 Message-ID: <152698373951.3393.7015045580434123801.stgit@localhost.localdomain> In-Reply-To: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> References: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM6PR03CA0018.eurprd03.prod.outlook.com (2603:10a6:20b::31) To AM5PR0801MB1331.eurprd08.prod.outlook.com (2603:10a6:203:1f::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0801MB1331; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1331; 3:BGMvzZF6KFCMWbUZpcXIEb63cYEnHSb9f/egWJhOPI89KpvkZI++CUGpos0HFQp6avqXVkCUGXKYpyHUv+Y10t69z6dfQlV9vWrB+z0Z7s1eIFoHcssK+aerGYR2G1f4GDGDAzZhY6DfJzmFbUVeOiSt4Yy4LnqCeCwH3+iWUY0zP/aK56qZ4cH0HSoZRglCPM0xvHhB2Nh1BN4r3vS4H6nqYpNrg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TfKqMdrBVVmUNWi8NSE6Ye1U6+vLA4x4ZPeC0sO9R04TpQRanghvTSMIebmV9KikNbmeTdmk/qzheQ+UIZSz7R5l7WIFe7f7HFSws+hxy+geEFbcM1PUTZWiZ8Nc; 4:JWYwUg4eYCEVBx22LQHdKS/lBFuAGQRzKsERrQrHHH318OTvg2r+p4LmgMiM6BXFLPSUVzBv67eiyG1SPA8lU2OUs97zb+Yn5tLE0Dez7IOInr9ECG2eyJ+dx+tTLqd9nXA5yOfRXMSWb0Y4ZPth0Aetbdttmt7XCvvL6WlmxFQc6cuajguxbxO0q4dMDNeFqrf17mz9Hp8IyhU0Io98/Itd5+svcN+s/jTpJSJaCbKRSvCgcVFRF8NhIivMRdHczwJNxy2JmzfLVsgSHer2HQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM5PR0801MB1331; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1331; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(376002)(346002)(39380400002)(396003)(39850400004)(199004)(189003)(97736004)(186003)(106356001)(9686003)(2486003)(52116002)(7696005)(68736007)(23676004)(2906002)(33896004)(5660300001)(486006)(50466002)(386003)(6506007)(76176011)(59450400001)(61506002)(16526019)(47776003)(7416002)(55236004)(26005)(66066001)(86362001)(55016002)(6116002)(8676002)(81166006)(81156014)(39060400002)(476003)(11346002)(53936002)(316002)(25786009)(3846002)(6636002)(103116003)(6666003)(956004)(8936002)(7736002)(446003)(105586002)(305945005)(478600001)(230700001)(58126008)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1331; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:3; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjA4MDFNQjEzMzE7MjM6ZWNGQ0k4QU8zVGZUVk56aUJkRjlZeVhh?= =?utf-8?B?aU1qa0sxV3dMMGxWY1BnYndxQXQxV051and0ZHNxZXJhTytTVDhsSll1ZTdl?= =?utf-8?B?Nis3eVRnQTdBQTB1aC9ZQUVkRWZhTkh5WFFCVzBaa0tBa04xcEhpZjJiUU9a?= =?utf-8?B?MloyMU5maUJzSjU5RUtFZTV0aWhRUmx1ejFGSGc2Wis2NjR2eUMyb21jV202?= =?utf-8?B?WUU3YVAvdDVPR0NMa1k0RXN0cGE5UGlwdFNyeXRIa2s3MzRvUlcwYTRxTWpy?= =?utf-8?B?dWtDMXQ1N29KY05UYjhHSUVLVnZ6c214d25wb3k2TTZxeFV1bUlLRTRZcVhJ?= =?utf-8?B?WHJYQ0kvRC9kTXA4cWczcnhrS3FhenFEYS9Tcy9hdmpybHAydHRncWZKRUhB?= =?utf-8?B?empXYU96elNqWThIM29iaEhmblNuWHlnUHNoYmxjcHExV2NrU0NxQkNaQUdi?= =?utf-8?B?WlpjMDI3T2N4cEJxNVdiNHEyM1hBNy9zSnc5Tk5FOGNWdU11QUtmRFhQTXE0?= =?utf-8?B?UHlIS2c4Y0ZabEg1dG12TU9Qb2NkM2tXYXMzZWtsUTNUQnZ2WTRoM2s1V2tC?= =?utf-8?B?a056U0FLQysyMHB4NElLakxiOU1oYlJPeDFKVWVTbnZ2UE5yQzh4ZDk4ZmdU?= =?utf-8?B?WHdXbWxPUXJyMCtMRUovTUlyZXZXNDZ6ZTZSdVlCWkJOd21URnVLbzE3dEtP?= =?utf-8?B?SlRXR2NxYnV1M09CMjJ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b5d5dnRzS+Ct5x9vXkGmV+3B3QRPXyfXtxIwHN2BxDCWyGzoyVJx7PAbVKIgaAQ4DLVyK6rVwAf16BUJ2BU01/czTT1BO/a+8San3vxCx68=; 24:YfmxkdO4KcHOkQaD1L94pNCaPqmMWNR6VTeMVbYfzsTdDQDUwxfN4Z40R9mjURhbaMebPGm3zwgcdbDZOzQkgea223GtMH7Ir0+VsBMHTHw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1331; 7:uQNPd9fh308sdg4mz76/iHGLlNvghucB4Ixe052FWxxe4CXxDEVrBW3b/bCQDUOJCQ/biyPIlFQHi9acTGbMffgpHa1nhWi/UdpkQF1b7aic9EQmxWjVKazA7tqY3sSnxS1djOWuh5EU+FEAM9UlJE283vdloMkDHqAja91xsQW96+XDTeqpj3F8P1IXl7CkQQh32hlRYjNWwzyI1UOgeyhTU48Ob9IB9PrSNvgOLEoqip+gC1yb3PTHDW+Crb52; 20:uka47ajntIwBxl6p3QwaY4hijTS9Bx1Q/7LXCrsQGe+D0NMaY95jlt0bs/BngQtKyV8DKv7W8wv/kvf8suWGVQAqr6jgrdcM+N6H2GyN9o9Mdint0kxoggM1thYVMj3b19fCe3QqsNtrCN+gsmFVbqznJ5LUG3oYrdz2NA8ZVFk= X-MS-Office365-Filtering-Correlation-Id: 47c3b0f7-af3c-42e9-33b5-08d5bfcc0f00 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 10:09:07.6468 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47c3b0f7-af3c-42e9-33b5-08d5bfcc0f00 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1331 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: X-Virus-Scanned: ClamAV using ClamSMTP This is just refactoring to allow next patches to have dst_memcg pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai --- include/linux/list_lru.h | 2 +- mm/list_lru.c | 11 ++++++----- mm/memcontrol.c | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h index 9e75bb33766b..d9c16f2f2f00 100644 --- a/include/linux/list_lru.h +++ b/include/linux/list_lru.h @@ -69,7 +69,7 @@ int __list_lru_init(struct list_lru *lru, bool memcg_aware, __list_lru_init((lru), true, 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 151fa77eb7c9..43cbec52a48a 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 b454f077de44..a86dfeaa9aa1 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3187,7 +3187,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); }