Message ID | 152663300433.5308.6557129799307735921.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 1323D60230 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01D9828462 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA55D288B9; Fri, 18 May 2018 08:43:34 +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 5BFC428462 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 211916B05B2; Fri, 18 May 2018 04:43:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1C0B06B05B3; Fri, 18 May 2018 04:43:33 -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 08A0D6B05B4; Fri, 18 May 2018 04:43:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id B504A6B05B2 for <linux-mm@kvack.org>; Fri, 18 May 2018 04:43:32 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id x21-v6so4332139pfn.23 for <linux-mm@kvack.org>; Fri, 18 May 2018 01:43:32 -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=mZSBW92NTFr6zgidDNXqdeAn5QOK5K70jxrUNd5DnmQ=; b=rN8ryg54+9YeV4scr1jKD1m/FMhvtdzsiQJBBn62XHkP41O1us1dTfz1zHeki8m9ns Pd5B3k2yZOveU7+vdPheBQUYRbuZ0czBrE3Vhe0rMY/AHfQbtX4Qa971cN+jWg2hMNVM NTdHvCrDTBdeJx1yQLfRvqVlpfB3lKqAZZdcwXe1adrQLTHhY8fxWa47u6bWwv0ecQFX CA9BcP8sIqXbVYnMYBqfTdg3npJYfuNqdK6fLskUdRSHiuxZPlgBIJcXDi/AcfArAzvG iQjLix6Af8LpIAEPhMQ1xZCxCYCBcLP/F3W7BAk/oD+Eig49G5I2ksr33P0vxaXqml1p t/9g== X-Gm-Message-State: ALKqPwdL+1LSQT3yVjyIOFnu/+Thjhcwi8LOKNO1071+B5F94qlYDbOi PZL1H/WrrLszkQAozosuZNjPxqU4Y4wrs/fYbcTCo0pRyh0DXJ8InOzScrIY9JMhrn6QQypDQ9L /c4KzG6pEerHdcfBR02XKlA2+3d7GelHzJ4wfmFk6El21BTyapwDRyg2bdJae4V07ow== X-Received: by 2002:a63:7807:: with SMTP id t7-v6mr6748717pgc.125.1526633012429; Fri, 18 May 2018 01:43:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpalnHUMDNjnN6MSBII0Pu5LHEldg9YshUWhZFcqlAlkWfq5tkO8uMhFqgd1vKVUoMh7/MB X-Received: by 2002:a63:7807:: with SMTP id t7-v6mr6748690pgc.125.1526633011752; Fri, 18 May 2018 01:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526633011; cv=none; d=google.com; s=arc-20160816; b=mExyyQsguZu6xBEt7vlFIWR1/qNaeNKk0iYIuV3ZQydrXwAdUq6t7wwO/NkfR0mIKM pNWSzPxqYTfj9vSG1OtdWRkeJIWzSeXqv0pB8v3rjy7/xMMs8dVwQL7hpoMuV4IVLjEa 2dNCIsr4elgikdnLa0uh34mP/7DbS6nCKtg8fgfvhiVk1IKOr7erfsH6kP2JPM357ZP6 qW7GmLNIAqe9BmWC14HXoHypnEoF3XieCqVlhxFKTdqs/Al5w8PfnDQ+mtDKvdrU5dph xqHppwsOwcSdgffZqMM2uhPvwi4MuOImcATkumQ3aDItJMAL6fBwKibk2H+/sWkWZSVo 7XPA== 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=mZSBW92NTFr6zgidDNXqdeAn5QOK5K70jxrUNd5DnmQ=; b=ol2nHiAfKwNh+HyOJJ0+ulP+83ax6hUKs8/uQvcdDm//F6TfBx77HLed2leTISiqqx Tvd+I0Ksahmj1hv9pcF9MDybpoi5iQNgKlV3NAVkhszquujoUvd61xn+KobNGmXg6r1E vDH3he0gYrrJBUgmKJbZbpDJmSRvZxQYFqVcxRMiOs1mus2ohaH73M3lv3IUwrzldA98 dn+sM71pjL+s0smwo23xY27Qua7qm5IZ9IBQrO0ExH5XS6TGWo621IEQY8v4W1xT0WuP 7RyXTDKWogu4VFrrkUDt0f/gRuwMPeC+83AhKdjmFf+LiTKPLs9tIRl5JIEiDeqc9rET AcUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=PcA0P673; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.97 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0097.outbound.protection.outlook.com. [104.47.1.97]) by mx.google.com with ESMTPS id m3-v6si5585894pgd.58.2018.05.18.01.43.31 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 01:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.97 as permitted sender) client-ip=104.47.1.97; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=PcA0P673; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.97 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=mZSBW92NTFr6zgidDNXqdeAn5QOK5K70jxrUNd5DnmQ=; b=PcA0P673VJWCrWcA4fUF8xriGO5dYYLS/jCMFP4U61RORVUCYTmfm5SGTaLrkzlO4cINlvZPUWE8pGqMXWtyppkRytFqsZ0iumqViyLUoMezUMut7RFEPoSolT8LZ7yECvSbIGTdwHDF5QZNMDSXJlS3vESjlZptYv5Dud3ilD4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Fri, 18 May 2018 08:43:27 +0000 Subject: [PATCH v6 10/17] list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node() From: Kirill Tkhai <ktkhai@virtuozzo.com> 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: Fri, 18 May 2018 11:43:24 +0300 Message-ID: <152663300433.5308.6557129799307735921.stgit@localhost.localdomain> In-Reply-To: <152663268383.5308.8660992135988724014.stgit@localhost.localdomain> References: <152663268383.5308.8660992135988724014.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: [195.214.232.6] X-ClientProxiedBy: HE1PR0902CA0001.eurprd09.prod.outlook.com (2603:10a6:3:e5::11) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) 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:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:sgdIzz05rzvi4KUoHoTTt8v53H1/DavOP8DIh62q/hHmuzeBEJUPkdqUJlAXjCuwj03NZX7yalamALPL4C93dg40qlzV7Dql72Xjri2peFPO1vW8DYt49+wHaRo958nTHL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Peccp/U6+ZqguPsTBVT8Rfjbc7YODyPmQ1M2ilXfnuPAAoc08DDWbsQ1172NOlWraoPCkzgsiPKEOS4JK3B+8NgsibdQWXRZOn5/l8iZl/Omkrp2yoz9ci9TRojZLrP8SeEnNMvaEliLhbho1W7LjZ4YPVc+xb6G2i69KIW9LFnz9SDiVRaXfyEWVOsUPTHoyXFDCLkWyFm17Z4DvUe2HIMq; 4:gQpEXFK84gJKDnQZjq1+M356YHt2UIAbgKPWMje2k50V2VPusJMVINY8rbCpPUjl4SNlGRqz+a3shhFEoccNIyjb8sgO5D1CK4/F09QGjXSYDKK1T02BZWw9tK9Vy2pdqOvJC4P4Cuvwh0PteluydOk5jvjBGiINm+exUvLEUVbUoPYEyn2nJq1AVKfd9XRtFbV0PbaiA7rfCnQY7hCMTFI18YOQU949BW9VtfM4bnTHjtOUzA+bV+xbVvuF/gFrGd2HUaze1HNbXSSnVMJURQ== X-Microsoft-Antispam-PRVS: <DB6PR0801MB13364FFFF6CE3C462AA96421CD900@DB6PR0801MB1336.eurprd08.prod.outlook.com> 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)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0676F530A9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(396003)(366004)(39850400004)(39380400002)(346002)(376002)(189003)(199004)(316002)(25786009)(58126008)(6666003)(6636002)(6116002)(39060400002)(3846002)(53936002)(9686003)(105586002)(106356001)(230700001)(97736004)(55016002)(50466002)(11346002)(23676004)(2486003)(52116002)(7696005)(7736002)(8676002)(81156014)(486006)(81166006)(305945005)(476003)(47776003)(8936002)(956004)(26005)(68736007)(16526019)(186003)(7416002)(76176011)(33896004)(86362001)(2906002)(386003)(59450400001)(478600001)(61506002)(446003)(103116003)(55236004)(6506007)(66066001)(5660300001)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1336; 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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6eURZaWovVnpCWWhYdlNBTld4TWh2WFFy?= =?utf-8?B?U0tyeDR6ZVJqUUIxdVBvNzVSWVhhcTZpd1h2RXoxU0NVTVdHcER3V1RVS055?= =?utf-8?B?bjJNeGdoMHYwbkRValhkd05ITDZxUTRJUlJreHpNdjBDYXNJd1BBVUFZWDBS?= =?utf-8?B?dHFXMVFqQ1JHL2hSUTBDUTgrd0d0T1grdE1zaTZBYi9Xd0YwVTdBT0JDNkd0?= =?utf-8?B?b1pMY2w1Y1NzRGlOTDlBT2J3L3VOYTNma0lINit1WUVCTXFhbDFVWStqUHNX?= =?utf-8?B?dkVRNVJzSk45b2lUdU9JNHhkMnZPb01kdGZFbVlNdTVuSm1JSldVZmFsZU1w?= =?utf-8?B?ODhNSUZUQTFXREprQktPQ0VOeFk1K1c3WDYyY3FpTUJSQzd5anluL1BWaHFv?= =?utf-8?B?UTJoNW96bHpCQXRzWkZ2WGtXRnZLYlRVOTJtYzJUOTRYdkhRU3NsdWwvZHJt?= =?utf-8?B?SzZHRW9pWFMxRWhLZkdRSElSVDlOY1RPREpSTnJwenMvQmpuSFRGT0RSUnhM?= =?utf-8?B?Mk55ZDFHSFV4cGs5dGRQRFJxZWJBb0M4THZsKzRQM1ltWHMwZ1BlZW1rWVVD?= =?utf-8?B?dmNoV1hxY0NNQ1V6aV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0XCrHQAzwlZX5UNaBCayIFOQn7t9D8KaMLiBwZBK7VOp0Wt1JcqDfM3KhwC5aCZg==; 5:tiEs55ZcFjQv4GTOnzuf580YJ/ajzlI4I/EvWRrdA3CpD4pzPXkgE5nA2AgGdlj6KIg6rg+dmqTLJhIhCwf0MkjUWy0CC3jk/tY/Htedq8WNP+7fUbFbMnEO3KH3eR3psVMjjzXgQy92wN9cY+UvxMnKua27A7z/imeYRHLgvgk=; 24:jYSxYUfQqVja+H+eKosO0nK9lvaj7xzD2MZkADF8UmV1gkS7s84u228sXamX8/z8FDBEeU9gRWYiGYFfsZb8n/ok2IDF+/IG/Loj6NWXMRk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 7:Ej9JtHlzDLOh2txBM6hAHwP6pVo0izWDZ5mrHSFEGaU6eCO/v1bddtC1N0Gh4gwHAwokLcxK1zjE9AjodIpUcPSM3FDXVswSb0/InrEw6sBZhktKELCsec6FrS7atxM0rhUbPMtA6xiBBKwIQ6b/optomLTO/yytzpaaXBzAV3yX1/F6gsyCjInsr9PVGvDbpV/FXr9tlegVFE2VlJvo6VjdTyk1FGV/KBoHfboS4rtrfi94GqyayVSpFyyiwz3j; 20:f6CTOJ3TEvaV4fmKZIyJMs56KI8dAD0Sv2HKEWR6SNU9H7kxk5a7V7nJ6kRPIx8gMz4K1ddCREJ7bks7VxQvminRDp9qL2g7nxNEL0jt+Hz31x8Y0luPEZeer4mj1tfuYDkBF1c6sA7twcUJ35zPeIJaxVXTCLBOjcHGTNXcpGk= X-MS-Office365-Filtering-Correlation-Id: 7b6c141e-1a63-4e2f-b7e9-08d5bc9b6def X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2018 08:43:27.2547 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b6c141e-1a63-4e2f-b7e9-08d5bc9b6def X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1336 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 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 317a72137b95..8afabac77b86 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); }
This is just refactoring to allow next patches to have dst_memcg pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- include/linux/list_lru.h | 2 +- mm/list_lru.c | 11 ++++++----- mm/memcontrol.c | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-)