Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1795865rwb; Fri, 2 Dec 2022 00:57:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf61QAEX96qgxTT0RHT0+mVCyfty07zjgePaLq52Mf5UcM6PyklcUXLmAB5KKNH9UACIy7g/ X-Received: by 2002:a17:907:8c83:b0:7bf:4ac7:56e4 with SMTP id td3-20020a1709078c8300b007bf4ac756e4mr932369ejc.39.1669971468904; Fri, 02 Dec 2022 00:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669971468; cv=none; d=google.com; s=arc-20160816; b=IxUj6SrUjXWtxiRdcwQ0XWcSQgQS1+03+I9y9RBKP+gdKRiFX2XDtdCrKSoIz+xLKj cti32bJQTBb6JpXhjasRtcPgIB/bVd1V30bmqivIbHDpnGtk504WUKu/44U5rVBVzms3 dnrM3rXo9b0gn3O8BO4hj0Pu4HM0M4jwAsa8sWhSDME293hYRIsSY4D/cMggt+IhMhw6 bUuDYXuwMpOKkT6E6nOqGC02X3u1jFswTR/LojXlXxdounyROsTMO0M0Qaz38EWV4eYp C6W3m2t1/1Dx/9LDXxlxL0pPT5iDCMdmkT0dMvdJ0+ylDCAxDblMPoiaPBndcJGwmJb1 8k9w== 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=0rTQ/mwpbI04DqLo1RdCSq58+jkVhA3iVO37R8FhN2s=; b=m+7OVjMtuNRhzkISra9C/vwalJMlWzZv0x2HrCP4UE1HK8F+jsfrspbuA44OuW7UBb vgArBWVVchSXuXjhvIOUpetaURFkYcv1/gtbuKi6nna5Qa5w8UjPeOlkm6FAelEL/C8X 2seaGTOeHYQ8uTc78TzQ2sEcANs9pbp9zp3+w6ae8IRQeXzmTU1RuzQbu+OsoQ/O9RGU sLvZUScRzlQeJsYv7XljbeHX3jaSuOeA30MBzJzoL7v0Weq0ij08RWy8HyONNMA0qDz1 YGzye8Ls+7nsKzLW6ys2pL7tYBPOlmDwbtq38rXd10t8/TBCFeinm6CgMJ/Y8vmR0pE7 flGA== 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 w5-20020aa7cb45000000b0046b3f597478si5528445edt.104.2022.12.02.00.57.29; Fri, 02 Dec 2022 00:57:48 -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 S232477AbiLBIj1 (ORCPT + 82 others); Fri, 2 Dec 2022 03:39:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232887AbiLBIix (ORCPT ); Fri, 2 Dec 2022 03:38:53 -0500 Received: from mx5.didiglobal.com (mx5.didiglobal.com [111.202.70.122]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 1982A1CFD3; Fri, 2 Dec 2022 00:37:56 -0800 (PST) Received: from mail.didiglobal.com (unknown [10.79.71.35]) by mx5.didiglobal.com (Maildata Gateway V2.8) with ESMTPS id 5360AB055B002; Fri, 2 Dec 2022 16:37:53 +0800 (CST) Received: from ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) by ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 2 Dec 2022 16:37:53 +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; Fri, 2 Dec 2022 16:37:52 +0800 X-MD-Sfrom: chengkaitao@didiglobal.com X-MD-SrcIP: 10.79.71.35 From: =?utf-8?B?56iL5Z6y5rabIENoZW5na2FpdGFvIENoZW5n?= To: Michal Hocko CC: Tao pilgrim , "tj@kernel.org" , "lizefan.x@bytedance.com" , "hannes@cmpxchg.org" , "corbet@lwn.net" , "roman.gushchin@linux.dev" , "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//+FgwCAAVYiAP//vByAgACohID//5lJgAAA0fUAABOecID//4cygIABqLMA Date: Fri, 2 Dec 2022 08:37:52 +0000 Message-ID: <771CC621-A19E-4174-B3D0-F451B1D7D69A@didiglobal.com> 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.65.102] Content-Type: text/plain; charset="utf-8" Content-ID: <5B5BD234FEA1914B8C9C78E8E2953F58@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 QXQgMjAyMi0xMi0wMSAyMzoxNzo0OSwgIk1pY2hhbCBIb2NrbyIgPG1ob2Nrb0BzdXNlLmNvbT4g d3JvdGU6DQo+T24gVGh1IDAxLTEyLTIyIDE0OjMwOjExLCDnqIvlnrLmtpsgQ2hlbmdrYWl0YW8g Q2hlbmcgd3JvdGU6DQo+PiBBdCAyMDIyLTEyLTAxIDIxOjA4OjI2LCAiTWljaGFsIEhvY2tvIiA8 bWhvY2tvQHN1c2UuY29tPiB3cm90ZToNCj4+ID5PbiBUaHUgMDEtMTItMjIgMTM6NDQ6NTgsIE1p Y2hhbCBIb2NrbyB3cm90ZToNCj4+ID4+IE9uIFRodSAwMS0xMi0yMiAxMDo1MjozNSwg56iL5Z6y 5rabIENoZW5na2FpdGFvIENoZW5nIHdyb3RlOg0KPj4gPj4gPiBBdCAyMDIyLTEyLTAxIDE2OjQ5 OjI3LCAiTWljaGFsIEhvY2tvIiA8bWhvY2tvQHN1c2UuY29tPiB3cm90ZToNCj4+ID5bLi4uXQ0K Pj4gPj4gVGhlcmUgaXMgYSBtaXN1bmRlcnN0YW5kaW5nLCBvb20ucHJvdGVjdCBkb2VzIG5vdCBy ZXBsYWNlIHRoZSB1c2VyJ3MgDQo+PiA+PiB0YWlsZWQgcG9saWNpZXMsIEl0cyBwdXJwb3NlIGlz IHRvIG1ha2U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