From patchwork Thu Aug 2 08:13:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10553349 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D82CE13B4 for ; Thu, 2 Aug 2018 08:13:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C935F2B7E7 for ; Thu, 2 Aug 2018 08:13:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCB7D2B7FB; Thu, 2 Aug 2018 08:13:36 +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 74B9A2B7E7 for ; Thu, 2 Aug 2018 08:13:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68A186B000C; Thu, 2 Aug 2018 04:13:34 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6398D6B000E; Thu, 2 Aug 2018 04:13:34 -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 501186B0010; Thu, 2 Aug 2018 04:13:34 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f69.google.com (mail-pl0-f69.google.com [209.85.160.69]) by kanga.kvack.org (Postfix) with ESMTP id 10E1F6B000C for ; Thu, 2 Aug 2018 04:13:34 -0400 (EDT) Received: by mail-pl0-f69.google.com with SMTP id 90-v6so922565pla.18 for ; Thu, 02 Aug 2018 01:13:34 -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:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding:spamdiagnosticoutput :spamdiagnosticmetadata; bh=qkje5KObdeCL9Mg0m2BuDypAqtl41PK80v6lc2wQ36U=; b=QnKp1imnl2o8GO/WqkzzzpGQn1hhuzpcEhZYaRdw+KjrEtGfz5yyKm1OoYoi9OQQyH E1kA0XTcw8KA47MTpA5SHbUAfV/48GfcTUfaAUNnI3bFjy7+h8gxDsNrhsx4vSHBU/2c ZylskPcQwClzx1YOcmY18XV44Wgs0DRAiqRIB78IBpbSH5xUc4b/Mo6fo40cD/QETJvQ uVcNxj38NRhQvXFVmpr3Q7xPshgE8cA7C2N/54PGO4p23x+7yxkUYnJeNW0nyFo3XuIa /BfB9A9gtZAGjkqUBmbVUS5rYq9stESv1h0e9xXSklHOgJwuF1duPDJadi11oycjlUut w/Rg== X-Gm-Message-State: AOUpUlGwMTitp5ZLffQGdL2dnqJLo/7tBH0fhBvAEXdyZUp4B+yapZo9 58+VV735uaMpT3ZGRfhK2jQYWgt5U7iZ+Q5v3rsuLyNZnXmAE7LVF8UihfnJ2vSIlBrVzt+amIo dSbgS+rZ2UdeBSeVIf9zEbIoJJGWTJ5gV2znb5rtevgBgtdMIXzYOfMqMxvrK4vrcBQ== X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr1688367pgg.97.1533197613706; Thu, 02 Aug 2018 01:13:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdZMrA/P1Xn48nFTduahWIhoTnzCZgBE6VZ1QTnCeclEW26Qlqj4rIhUu+vU1FUtf7lpm68 X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr1688334pgg.97.1533197613204; Thu, 02 Aug 2018 01:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533197613; cv=none; d=google.com; s=arc-20160816; b=PagVPUcko67xiTKU9WAOPcqRpA8Db6718202HpyvDE6IuIn/9gfFmXbZUU2ikL0VdV yPPeRNuIXL02JNdEJaWziNlSbG2k5XDupkwziOImO873D7WzRBvgv/fbEwAOt8Y8cuUQ zaazaSZahYG6hsFOyGVv9Ke3HaM9q3VUAmPdTVZS10WKGw957dsDzyL5THCjXlOU5yhA Oc2vcn4I0LwkbbhX/xB1w/1Ad1WOOEA18S3Llsxgm1Sqev3kr/qVxBfxUENWMRTw2s52 1U4To0SCp20gwLKRu8dolFfl5k3vTsEHYQvOh5rIeqvQpuXL/hxVYL/+GFZ7Bl09Msxq JnJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=M/DzrWo4gaROBBk8FRmamNgsk21Hg6DWoXmGw04rOYDi8N68Q5hrQzywviLGiTNPV+ rk6Gm7g7UyC7m+wPmMk36d8vRSfmyIVwqEJRMmNERrbnRVP1RYk8HC+ffJjgAmu+0PVJ IPFj3Ow6W1pAtiAosmXtu6rMqT5kr3XU9NMFdBVORRUzMywp5dCVpPawY9A5+Owbk4K0 /mrZjtpVy9cCIK00/v1ZhS4m7hsAPvDG6PRkEcB7Av5/0ayr7MAGSdlQaYTth+7Xk2FF Sy/nOAGMgXMNtIMoVGkESGdWlljD/KKSUjf2N0DqNnk7tmo9V0yOOEev9SlLDuT5FK+5 tPTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=YrouCAQc; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.98 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-ve1eur01on0098.outbound.protection.outlook.com. [104.47.1.98]) by mx.google.com with ESMTPS id t10-v6si442249pgn.370.2018.08.02.01.13.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Aug 2018 01:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.98 as permitted sender) client-ip=104.47.1.98; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=YrouCAQc; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.98 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=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-Language: en-US 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:mNclvnZSmgsuV7p8PNhNGrq6R6y9UWx2rK9xCnSY8W2JU6ydw0MKBJ6lOzlUOLr2YA1zvXv3OcJ7uej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ItDFLXd04tWAw0H614+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?q?1=3BHE1PR0801MB2028=3B23=3AKRgdW?= =?utf-8?q?ygYOc2ORQvoj9NHLqjSol/jUITggTNzyT0HUuCpl1O6yGsM7Pzxso8TbzhEF46dWJ?= =?utf-8?q?/dzCg+7d+geQLrj+miAUXkYunkz7p9KSlBcxfL0fMGocQ4eq6h+KMGToTIYP1PCCh?= =?utf-8?q?kPhvqpXS5EA/fhPDfBgOHtmSACo56nIQZlNHHNTemakEYzcBMdpXuGDaWqtxkWzPv?= =?utf-8?q?YEVTX5CKzMTF+xRf+pUSTmoLK9UfJ7nJHZOdR3dUuiZbxTBAD13h0cPzbkPG74VQC?= =?utf-8?q?HTLwjDS/KP6f8esCRL3bhUUwh4jMYxFeQjqzhoU3N3bDp4rTpvD9pB55RdKH+xrJL?= =?utf-8?q?ohk2hqH3Q/EtZfL8qMWlP8mmgfpmh2Ch27QtQ7fYHwbnMEVeGXSReKfEjuVJTHHR4?= =?utf-8?q?I0OZS1hU8w0LC4xNFZD8icjN+W2utIG8gedd71UDRHapfLWfSeCe77M6OYlRXIicg?= =?utf-8?q?84+Xx7t2fBXnIm0WdEpwoDBDJ5P8u8FCbS0+uZ6iGST1NghWWGlAvNTjLU5hBwVlF?= =?utf-8?q?MVHD8kx7waEdIOq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COk=;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 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 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;