Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1815728imm; Thu, 2 Aug 2018 01:15:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeOPW7tENnzeeAG5G/McfBB8HzC75ZgEoa35imJHhiRp6X0mchLko5Vl41rKGC/iMjt0hol X-Received: by 2002:a17:902:46e:: with SMTP id 101-v6mr1501851ple.39.1533197745976; Thu, 02 Aug 2018 01:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533197745; cv=none; d=google.com; s=arc-20160816; b=ElOgIMdQp4Rp6K3XSXj2Eg3QbMPmy7BQVj2UPZ16CdFWrFBCFdR88LdUkp2W0DxmGV CJPXZXgSnFf4hWOzCj28In47oWWLqubpqGl3Ozf9ozbNl1AEmsoMU8Vsf4doGkOeTRJ5 Dn7fhKQfo997AQH8WysR+YEFUGd/ES0qRVqXnlinz0m7eVEdsHHBlRhF9d02YkG4Mm2e bcxote6ERsrqAIGsOMxkL6ipDeCMr3Clzg+ycecojnAMsqZmzFMxaWJw5ADxyW/pB8FE OxnBIRItb9J/6oTSfehTolx97IabDlpx3FRpomK+ajr4H0lQ3lqfigDj2mElMSrChz+N 0tBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature:arc-authentication-results; bh=qkje5KObdeCL9Mg0m2BuDypAqtl41PK80v6lc2wQ36U=; b=t6XY2pNYPh06ggXYIbj27tW8pte6kUcXk9K0QHWtU1BUCL/12HIEKiFHn1XkM8mglP 99+hbHD4P6l70XF7qeD3SwOxfEFQcjvAguHIx4brJVUuRsrfD8my/jD4SAmTSX26tQpj UMC6lnLLNsPlhnKvy+ji1JuaPYNoD2WUguj/kTx2mvLckzHVB38O5yQPsWFD5FsJck3k VnAz/S2Z6bPHYCCPiCAHzS/loQQWhm54r+divUTHPWAVN4i6Q66PqWiOGvyNTGqfvA8C hVs0vBvZ4h26xhNZNwMz4AwI7f6QZwg8aXgdFZ+Z6cjY9J9G41/HL8R+lYjQtoI2iDs4 9ByQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=YrouCAQc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si1448595pgm.454.2018.08.02.01.15.31; Thu, 02 Aug 2018 01:15:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=YrouCAQc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732001AbeHBKDe (ORCPT + 99 others); Thu, 2 Aug 2018 06:03:34 -0400 Received: from mail-ve1eur01on0092.outbound.protection.outlook.com ([104.47.1.92]:30416 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731781AbeHBKDe (ORCPT ); Thu, 2 Aug 2018 06:03:34 -0400 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=qkje5KObdeCL9Mg0m2BuDypAqtl41PK80v6lc2wQ36U=; b=YrouCAQcrzEIBLPilLobs4ev65kgZCaNkFNDI3PgtrwHnfpbLdJzUW2kRC1IjOqO6XTfiaMuI0//fyTTEUHtydPslVMOx5cZgodtmy19mA5yVF5RktkPvtZhQ5/wk+K66zAWos8kgrtcmA39dOw9X3C+xE5CUQnWnVb0uRU+8t0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from [172.16.25.169] (185.231.240.5) by HE1PR0801MB2028.eurprd08.prod.outlook.com (2603:10a6:3:50::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Thu, 2 Aug 2018 08:13:28 +0000 Subject: [PATCH] memcg: Add comment to mem_cgroup_css_online() From: Kirill Tkhai To: Vladimir Davydov , Johannes Weiner Cc: Andrew Morton , Michal Hocko , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20180413115454.GL17484@dhcp22.suse.cz> <20180413121433.GM17484@dhcp22.suse.cz> <20180413125101.GO17484@dhcp22.suse.cz> <20180726162512.6056b5d7c1d2a5fbff6ce214@linux-foundation.org> <20180727193134.GA10996@cmpxchg.org> <20180729192621.py4znecoinw5mqcp@esperanza> <20180730153113.GB4567@cmpxchg.org> <20180731163908.603d7a27c6534341e1afa724@linux-foundation.org> <20180801155552.GA8600@cmpxchg.org> <20180801162235.j3v7xipyw5afnj4x@esperanza> <7a836e47-f0a4-6802-9b90-cc473e5ab90b@virtuozzo.com> Message-ID: <521f9e5f-c436-b388-fe83-4dc870bfb489@virtuozzo.com> Date: Thu, 2 Aug 2018 11:13:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <7a836e47-f0a4-6802-9b90-cc473e5ab90b@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: AM3PR07CA0121.eurprd07.prod.outlook.com (2603:10a6:207:7::31) To HE1PR0801MB2028.eurprd08.prod.outlook.com (2603:10a6:3:50::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22f4b231-0139-46eb-23a7-08d5f84fd4b5 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:HE1PR0801MB2028; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2028;3:mNclvnZSmgsuV7p8PNhNGrq6R6y9UWx2rK9xCnSY8W2JU6ydw0MKBJ6lOzlUOLr2YA1zvXv3OcJ7uejrfie79EqFyowf0rlSahE/0uknFmb7cueRVgMjxrBs/rqgZNPIYBIM7sdgzVTE7WIB6C5bgb0OPpBY+i/YFEvLRBqy54Te794OatzyfwYSViG8+g3EOegT8qgrAH/PzucR48BascC2GzuDnXiRXKflG48+5/f91I12UuNPHqAFUnti/i7X;25:ggT/oChDNQ4l2h6QLaFV8O7+mB/8X1LGwLyil4k76nhF0BHSreXgHgeyqGrXu00Qh412rzO6mYAd8Ourg+bGNWHCoGG1nMflGG3FB84LV0GE9lVgcwtYxAJ/Cf7XGv13FNVskrHc8xzgXmVRJ48qUtze+/kQsdxBy4AXY5DupALnzdfZ45PnwS/4SRfGyydjSgcb4SmG2TyCqyEUlCojZCJltf/Zm7mfjRFHu9IY5QkqGUZ4htbQ6s+nSp0p0PWjA72re9M+0CSsa11eg9i2WVLhtEMuoYrZrEKqb9YvhB5rZZYLm5U6b9wGM1b1k8SlNr0hfUnSgsZZaZ4dzTDR+A==;31:JLkA1GhWkEmdDYmqZuvrYaAtnyE/KkGsYmC8Q4jzFdvWpyd6LpPnIcWu1kE8f1ZKcaEk5o7OmDulo43Nmm0J6k67xeo/u7EkAPQOI/DkZJsjrW6lUP7P5qNw++i091yhuWSXOcvnKLJJIjsLGFKilMyblYlHEZ2mhkTiMIzKLIcPZust2NbdzLXfsgr7I+QTOnWfClVlAYYvl392KWS/IsbYIV2YWZ68ndy/3CEJwBw= X-MS-TrafficTypeDiagnostic: HE1PR0801MB2028: X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2028;20:fs3OBfaQ4VGo3TloNJQwDEuMgHSMOiIG3s8RDpB3pmyqr4j2TTXonj3NJnryMfhBUWYIWQ62dQ2f2uE1zDurSeDfukApTrTigJP4BQCZfOZhfG9RtMpx0uk0eSD1RT9+gU2VE6ZlO7yIzRsgyoaZJ5/DS2hjjvLciOe+QcfqsxRwraT4pNpEWfUFxLER8zzrwjaw9rOv1CqEU7K2AsWPsx6zeZPsmhLc6JOF5sKlWqQmj+0qLK0ItDFLXd04tWAw0H614+7zBqKctAX0Za+1NyDCmJmqPfRVvAc6eTD2XA5F2ABcF+4xa5MDOYnoTkmo9tZ53CiKHl3v+0jylOy7wXX/Ih/GS0WJwItBkppcdGncUb75FkuohmaF3b1vJXzqPtmIMU9Pmw9Xw+P6A52AikMlgV8sS3qTm/QFF9eN79X2Umcz32zsqGaL1wDaQsxSjrZ9HfT6eaQGXoQrT95OGQCxWpd4+EBj2L5fYO88aPqDh5++0MwxD4F8bAmco3xk;4:AZryrauT4Yt7/BsM1VhE508MXcssU9NtSfOtmXMCUOPQBSvLmcFe5/a5Cb2cJrhT2Eg1vCg50dkdPlMjAK4SIsz+AUVb4QV2RdPAurk2GVtSzLnmoAtHo2M2KRyxLG7aZ5NGUL8nHpV9jZQF6s1+o6QivAIEtsWkQY8A0uOHFtFiUk3XCktC1MDuZ/L2iVT/SwbjczHgFLivxB4Im/ZahzvIHY1JDA6XLo2sTe4sfAZf5IhrOb2aw4CrtCL8s7Ylnb3RlpMnkvDHFtUBNbYfa2WRAplCEtztR1FdT2mB0gNQN7XxYiFQEc5z5aEFtvfr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85827821059158); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:HE1PR0801MB2028;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0801MB2028; X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(366004)(376002)(136003)(39850400004)(396003)(346002)(199004)(189003)(39060400002)(14444005)(8936002)(16576012)(11346002)(64126003)(86362001)(76176011)(4326008)(52146003)(25786009)(446003)(77096007)(23676004)(52116002)(106356001)(54906003)(97736004)(2486003)(58126008)(110136005)(386003)(53936002)(26005)(36756003)(31686004)(93886005)(316002)(65826007)(81156014)(230700001)(16526019)(1857600001)(105586002)(186003)(31696002)(65806001)(305945005)(6486002)(6666003)(3846002)(2906002)(65956001)(486006)(478600001)(956004)(476003)(6116002)(47776003)(7736002)(66066001)(50466002)(81166006)(8676002)(2616005)(5660300001)(68736007);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0801MB2028;H:[172.16.25.169];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjIwMjg7MjM6S1JnZFd5Z1lPYzJPUlF2b2o5TkhMcWpT?= =?utf-8?B?b2wvalVJVGdnVE56eVQwSFV1Q3BsMU82eUdzTTdQenhzbzhUYnpoRUY0NmRX?= =?utf-8?B?Si9kekNnKzdkK2dlUUxyaittaUFVWGtZdW5rejdwOUtTbEJjeGZMMGZNR29j?= =?utf-8?B?UTRlcTZoK0tNR1RvVElZUDFQQ0No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UR2K/7YUGSNF2Bx/3YurCOk=;7:mKXjoJxvHiiY4iFHKETp2j1UCOuNq396lsEHr5eL0X77wCwGBnhWH8uDLC4p4ToNiVJRRCVikTca/dlxrCLT6PP4tYfxxewXwCDSJRoPYj9Y7hEToSRnun8o3UyisKfMu64C41vwBIeydrA7DKM+LR0IrYVPlcoOIYWClXoOo3KOEr+hc6XGkeikQ8cssfJFuYkdFaNv5DAfX2VZn593L2tPMgEICRhIYEFwEgCBdbFVrg00cnMzuUUItHtdXRM3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0801MB2028;20:vrOGZlSJNrYy0A3EAww/sXgwawR8bpmkfCV0bWBWg8lesIHpM+TjlXjea/xMVvz3aWBMGrzWnN3HTeBibddJqGIgDn9m3lodq3b4hCDZxpSj6KKiLTiFJfBrH2BW+BPsq12sVfD59bEWPCBx419b9tvtZRCZe4hqW2w06+KtcVA= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2018 08:13:28.9292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22f4b231-0139-46eb-23a7-08d5f84fd4b5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB2028 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Explain relationships between allocation and expanding. Suggested-by: Vladimir Davydov Signed-off-by: Kirill Tkhai --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d90993ef1d7d..34e5ff72ce87 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4703,6 +4703,11 @@ static int mem_cgroup_css_online(struct cgroup_subsys_state *css) { struct mem_cgroup *memcg = mem_cgroup_from_css(css); + /* + * A memcg must be visible for memcg_expand_shrinker_maps() + * by the time the maps are allocated. So, we allocate maps + * here, when for_each_mem_cgroup() can't skip it. + */ if (memcg_alloc_shrinker_maps(memcg)) { mem_cgroup_id_remove(memcg); return -ENOMEM;