Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp585551rwb; Thu, 1 Dec 2022 06:06:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AOhH+NkQn2xN+va7YxJdPUjWiC/SS9QEwzmJ9jDG8OZWW5gu/WIS/KyzAiHernoBATGLj X-Received: by 2002:a63:5042:0:b0:46f:e658:a8ff with SMTP id q2-20020a635042000000b0046fe658a8ffmr44653720pgl.493.1669903588715; Thu, 01 Dec 2022 06:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669903588; cv=none; d=google.com; s=arc-20160816; b=V/Ys6XfOmnR7RNJrkamqdIP45+n/dRnYgcNrKTDedHxg12S8soFgRqVJXfW5OiMaI6 CB11F2+OCG45xogjtjQOhTtjSRJukY59Sw942CHtJ+vbVJqda/L3Xb7uKaHh5n1DoJzn Kcw+P0Wq+pwxOH1BU8v7pCIDskvrEXZaxK25oECKCOfUGqVp/9Cu3D1zKGBV0SAAJxPW Fl11j/1jwzZ6Rm2aVM1wrzrX3zRTnUc2PfqpUyR+fl3gjDVYkRZUOrLs87SjIyiiiSif 7xs3gMedvSDiSRc0HUlvi2AGhhX9V7jfJc8FvJtiqrrUls+K/Guzk1t/HObWCh/VUEb3 ze+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=xbAVOoltazlWyDCK7Vahv8zWIuvVo5HGC0cRiSPyyQ4=; b=W6YgVt6RwtRT262R4CBgIVfxsOHzvBGj6SlR3vCn2f1nwadEJi7uHyte7nfhNbSFFh v5zbghJbfyJ1r7/cP6SF8KHCqYXsotBLMSa20mQD8Ld/6phQlNMfTfxL4aMATZrQ71/b QY7wQobAmPk0JcvKYgsTlu2YmtBc5WLhPQ81duz94Br19bWADNN+UH2tXLE828LLf+bU pswPy7fHEps6ub9eBqKD5KDmfdPIDhoV3VLdH9gz+FGYGiFjLU06Yccnxp//U8ixgfLK j18sX94IKUWC7zHPyZbYlATBIiASRmJ+k57gddBx6htv7nZPRtxR2pR9b5BFHGH4khmu AeAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a170902f64d00b00186a4763532si4503769plg.28.2022.12.01.06.06.11; Thu, 01 Dec 2022 06:06:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231396AbiLANF6 (ORCPT + 82 others); Thu, 1 Dec 2022 08:05:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbiLANFl (ORCPT ); Thu, 1 Dec 2022 08:05:41 -0500 Received: from mx5.didiglobal.com (mx5.didiglobal.com [111.202.70.122]) by lindbergh.monkeyblade.net (Postfix) with SMTP id EB3BA9E474; Thu, 1 Dec 2022 05:05:33 -0800 (PST) Received: from mail.didiglobal.com (unknown [10.79.64.15]) by mx5.didiglobal.com (Maildata Gateway V2.8) with ESMTPS id A79DBB00F7436; Thu, 1 Dec 2022 21:05:31 +0800 (CST) Received: from ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) by ZJY01-ACTMBX-05.didichuxing.com (10.79.64.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 1 Dec 2022 21:05:31 +0800 Received: from ZJY03-ACTMBX-05.didichuxing.com ([fe80::1dcd:f7bf:746e:c769]) by ZJY03-ACTMBX-05.didichuxing.com ([fe80::1dcd:f7bf:746e:c769%8]) with mapi id 15.01.2375.017; Thu, 1 Dec 2022 21:05:31 +0800 X-MD-Sfrom: chengkaitao@didiglobal.com X-MD-SrcIP: 10.79.64.15 From: =?utf-8?B?56iL5Z6y5rabIENoZW5na2FpdGFvIENoZW5n?= To: Michal Hocko CC: "roman.gushchin@linux.dev" , Tao pilgrim , "tj@kernel.org" , "lizefan.x@bytedance.com" , "hannes@cmpxchg.org" , "corbet@lwn.net" , "shakeelb@google.com" , "akpm@linux-foundation.org" , "songmuchun@bytedance.com" , "cgel.zte@gmail.com" , "ran.xiaokai@zte.com.cn" , "viro@zeniv.linux.org.uk" , "zhengqi.arch@bytedance.com" , "ebiederm@xmission.com" , "Liam.Howlett@oracle.com" , "chengzhihao1@huawei.com" , "haolee.swjtu@gmail.com" , "yuzhao@google.com" , "willy@infradead.org" , "vasily.averin@linux.dev" , "vbabka@suse.cz" , "surenb@google.com" , "sfr@canb.auug.org.au" , "mcgrof@kernel.org" , "sujiaxun@uniontech.com" , "feng.tang@intel.com" , "cgroups@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "Bagas Sanjaya" , "linux-mm@kvack.org" , Greg Kroah-Hartman Subject: Re: [PATCH] mm: memcontrol: protect the memory in cgroup from being oom killed Thread-Topic: [PATCH] mm: memcontrol: protect the memory in cgroup from being oom killed Thread-Index: AQHZBK+NwNVzWF9Xk0ibAn/rxGrWSq5XnGYA//+FgwCAAVYiAIAAMVUA//+OT4CAAMofAA== Date: Thu, 1 Dec 2022 13:05:31 +0000 Message-ID: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.79.64.101] Content-Type: text/plain; charset="utf-8" Content-ID: <53E33F2DC7944D4EB7C18932F5609912@didichuxing.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QXQgMjAyMi0xMi0wMSAxNzowMjowNSwgIk1pY2hhbCBIb2NrbyIgPG1ob2Nrb0BzdXNlLmNvbT4g d3JvdGU6DQo+T24gVGh1IDAxLTEyLTIyIDA3OjQ5OjA0LCDnqIvlnrLmtpsgQ2hlbmdrYWl0YW8g Q2hlbmcgd3JvdGU6DQo+PiBBdCAyMDIyLTEyLTAxIDA3OjI5OjExLCAiUm9tYW4gR3VzaGNoaW4i IDxyb21hbi5ndXNoY2hpbkBsaW51eC5kZXY+IHdyb3RlOg0KPlsuLi5dDQo+PiA+VGhlIHByb2Js ZW0gaXMgdGhhdCB0aGUgZGVjaXNpb24gd2hpY2ggcHJvY2VzcyhlcykgdG8ga2lsbCBvciBwcmVz ZXJ2ZQ0KPj4gPmlzIGluZGl2aWR1YWwgdG8gYSBzcGVjaWZpYyB3b3JrbG9hZCAoYW5kIGNhbiBi ZSBldmVuIHRpbWUtZGVwZW5kZW50DQo+PiA+Zm9yIGEgZ2l2ZW4gd29ya2xvYWQpLiANCj4+IA0K Pj4gSXQgaXMgY29ycmVjdCB0byBraWxsIGEgcHJvY2VzcyB3aXRoIGhpZ2ggd29ya2xvYWQsIGJ1 dCBpdCBtYXkgbm90IGJlIHRoZSANCj4+IG1vc3QgYXBwcm9wcmlhdGUuIEkgdGhpbmsgdGhlIHNw ZWNpZmljIHByb2Nlc3MgdG8ga2lsbCBuZWVkcyB0byBiZSBkZWNpZGVkIA0KPj4gYnkgdGhlIH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