Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2666826rwb; Wed, 30 Nov 2022 09:17:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf47ovI3Q8NxY1W0TkFfgShmA0E+CBFVOZxI0VJSIzFdlnCta7yjeFPv6B10I2G2fBlzhoux X-Received: by 2002:a17:902:ec01:b0:188:b8cf:83f with SMTP id l1-20020a170902ec0100b00188b8cf083fmr45699466pld.134.1669828659432; Wed, 30 Nov 2022 09:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669828659; cv=none; d=google.com; s=arc-20160816; b=LJxTbCKNeExw9f0ySADvotpFD4KnZSA74ZLuhYcyyoxInN6xiobZYCdarO2bs4xqJW IKrNDTXZGm8Tw6ZAOno+SkcAHQ8IiateGujuIKSXNMQr6N9EfiLh9/Uv8y8UHtlhrRDS YNJPMJr7BF6IroTjAp7pBbO5nxHnF8YAPrmOh/WXuJItPG+mvsEU2WB99fzSkAgl0npY 3rWaNJmSdeTkBQAureRjoal6sunYeOXPyIf9tTNf74dr2+VEF0MinVMnEwYa0Zx46H9W eoOYsp9V5AbqEatWpvCR9z1W32McfqjWbGQkagiQdrNha/7E3je3uezeV9J6zrn7VYZl RitQ== 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=Aj27TAtWspPLnPdMr6tbxalEyb6dTYg0OUuOVuZZjGg=; b=Q0vpqWQZd/0BqHLV5xNQ0j1NTMpzElixJN85WmlHMfy8AWXlIOdeJeYtpXODIvPjyA vNcl80Gbm6YVMpzvBGEffl/EhLAosbtJ09tuNTRlwuM62ERXlPi+34C14PhV7OOuDNty avwIx2pz8sI5cXMgCxhpEepBs38QFPTZLdF9qB9GTjyXotJbhPIviYmpHEiQNXXTT8xQ K7eeY3KMThf+i/uL+T0lvemzKU6mWROqzZ1d6Qi2DRgNyJvFgkidxkGtWz//+KRqql6S +z9iAT47faQfVxNg4hho81RyM9T+hDLjILugc3VBpih6Qt3QjqGpfrd9UPoe7+Vwaew5 +Lzg== 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 q20-20020a656a94000000b00476f8b57e4asi1792649pgu.475.2022.11.30.09.17.28; Wed, 30 Nov 2022 09:17:39 -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 S230014AbiK3Pq3 (ORCPT + 83 others); Wed, 30 Nov 2022 10:46:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiK3Pq0 (ORCPT ); Wed, 30 Nov 2022 10:46:26 -0500 Received: from mx6.didiglobal.com (mx6.didiglobal.com [111.202.70.123]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 0DF96813B2; Wed, 30 Nov 2022 07:46:23 -0800 (PST) Received: from mail.didiglobal.com (unknown [10.79.71.35]) by mx6.didiglobal.com (Maildata Gateway V2.8) with ESMTPS id 631AB11035FE0B; Wed, 30 Nov 2022 23:46:19 +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; Wed, 30 Nov 2022 23:46:19 +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; Wed, 30 Nov 2022 23:46:19 +0800 X-MD-Sfrom: chengkaitao@didiglobal.com X-MD-SrcIP: 10.79.71.35 From: =?utf-8?B?56iL5Z6y5rabIENoZW5na2FpdGFvIENoZW5n?= To: Tao pilgrim , "mhocko@suse.com" CC: "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" , "mhocko@kernel.org" , "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 Date: Wed, 30 Nov 2022 15:46:19 +0000 Message-ID: <7EF16CB9-C34A-410B-BEBE-0303C1BB7BA0@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.71.102] Content-Type: text/plain; charset="utf-8" Content-ID: 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 T24gMjAyMi0xMS0zMCAyMToxNTowNiwgIk1pY2hhbCBIb2NrbyIgPG1ob2Nrb0BzdXNlLmNvbT4g d3JvdGU6DQo+IE9uIFdlZCAzMC0xMS0yMiAxNTowMTo1OCwgY2hlbmdrYWl0YW8gd3JvdGU6DQo+ ID4gRnJvbTogY2hlbmdrYWl0YW8gPHBpbGdyaW10YW9AZ21haWwuY29tPg0KPiA+DQo+ID4gV2Ug Y3JlYXRlZCBhIG5ldyBpbnRlcmZhY2UgPG1lbW9yeS5vb20ucHJvdGVjdD4gZm9yIG1lbW9yeSwg SWYgdGhlcmUgaXMNCj4gPiB0aGUgT09NIGtpbGxlciB1bmRlciBwYXJlbnQgbWVtb3J5IGNncm91 cCwgYW5kIHRoZSBtZW1vcnkgdXNhZ2Ugb2YgYQ0KPiA+IGNoaWxkIGNncm91cCBpcyB3aXRoaW4g aXRzIGVmZmVjdGl2ZSBvb20ucHJvdGVjdCBib3VuZGFyeSwgdGhlIGNncm91cCdzDQo+ID4gdGFz a3Mgd29uJ3QgYmUgT09NIGtpbGxlZCB1bmxlc3MgdGhlcmUgaXMgbm8gdW5wcm90ZWN0ZWQgdGFz a3MgaW4gb3RoZXINCj4gPiBjaGlsZHJlbiBjZ3JvdXBzLiBJdCBkcmF3cyBvbiB0aGUgbG9naWMg b2YgPG1lbW9yeS5taW4vbG93PiBpbiB0aGUNCj4gPiBpbmhlcml0YW5jZSByZWxhdGlvbnNoaXAu DQo+DQo+IENvdWxkIH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