Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4077610rwr; Mon, 8 May 2023 02:29:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4N0gKVAvYE45ECC65o8zlX/x/P+nwT/hpKjY/BZPsq+chSVBgSAPj+z+rkFGrL8qGqbsNE X-Received: by 2002:a05:6a21:78b:b0:dd:cae3:641c with SMTP id mg11-20020a056a21078b00b000ddcae3641cmr10551876pzb.55.1683538146309; Mon, 08 May 2023 02:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683538146; cv=none; d=google.com; s=arc-20160816; b=iT6/X8kvAR3CPcaUKrnOd5M3qz1oThDgKrox0LPkd8WiH+bRHG/SBwtSlBIU7kgeuo sqPWk+eT3yxpDBjdOop//BqRbo3oyeLvs/iT2k4I/QxfIbJBKkgXXCs6S4263JqMkzpa Gls3i9Yy/KDPmgp/ANYqhegf6QV8Qcc36PBKDCA6Cxxty3HmjCu8YLd+Piw8l8U0KnK+ FqJQ/MHOKGO4QmfYi7PMyrar02fowXGcWq1smGoVvV+CaeUCLiOYCUanSiVONa32dEb+ 65XFdxxq1uAtHMsYb4GHr/m/+Jg6jdrIbqN7w9//xV4VQHfz/zkvJcbftdWoH32GkcWB LBKw== 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=2vLNbJSFlcFF1EEt5+bXeO2RbzSUChR29uV3esXwst8=; b=aXBjMN9j6vdVPnavHmsRKJoZ8TgN51aJQFGuZnwl5NrAOgPIR/+uvMmWlP+I6M5Kt0 q6eExjsiDv0ey8+zB2FlWaayRJ93Zr3pakhLUA/Tv8wdbJrHSNcSJUcNaev9Vvh5FBRU Sm0ChcM3sFbTjLIhPT4Ek7jd4yk3KTL9zi3yk29NOaoNL8C++c3mjDAUVNoM/23C51e4 2LTI5zdCsuRCvDkC8cVCU6/3MGum6QwQINdRdccBTjyfNNlL+LDBI44WQe7VwXSpqPUZ vp7hmhmt9QF2hyD/WAe619fCAQrK4s9aDnCSbKMbr/TBE3ZceGSGzDqp5PK0AyTM4Gb1 PYdg== 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 f8-20020aa79d88000000b00643a6fa4145si7225214pfq.295.2023.05.08.02.28.52; Mon, 08 May 2023 02:29:06 -0700 (PDT) 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 S233487AbjEHJId (ORCPT + 99 others); Mon, 8 May 2023 05:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233228AbjEHJIc (ORCPT ); Mon, 8 May 2023 05:08:32 -0400 Received: from mx6.didiglobal.com (mx6.didiglobal.com [111.202.70.123]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3E20F6583; Mon, 8 May 2023 02:08:29 -0700 (PDT) Received: from mail.didiglobal.com (unknown [10.79.71.36]) by mx6.didiglobal.com (Maildata Gateway V2.8) with ESMTPS id B97C1110052C16; Mon, 8 May 2023 17:08:25 +0800 (CST) Received: from ZJY03-ACTMBX-05.didichuxing.com (10.79.71.35) by ZJY03-ACTMBX-06.didichuxing.com (10.79.71.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 8 May 2023 17:08:25 +0800 Received: from ZJY03-ACTMBX-05.didichuxing.com ([fe80::7d7d:d727:7a02:e909]) by ZJY03-ACTMBX-05.didichuxing.com ([fe80::7d7d:d727:7a02:e909%7]) with mapi id 15.01.2507.021; Mon, 8 May 2023 17:08:25 +0800 X-MD-Sfrom: chengkaitao@didiglobal.com X-MD-SrcIP: 10.79.71.36 From: =?utf-8?B?56iL5Z6y5rabIENoZW5na2FpdGFvIENoZW5n?= To: Michal Hocko 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" , "brauner@kernel.org" , "muchun.song@linux.dev" , "viro@zeniv.linux.org.uk" , "zhengqi.arch@bytedance.com" , "ebiederm@xmission.com" , "Liam.Howlett@oracle.com" , "chengzhihao1@huawei.com" , "pilgrimtao@gmail.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" , "linux-mm@kvack.org" Subject: Re: [PATCH v3 0/2] memcontrol: support cgroup level OOM protection Thread-Topic: [PATCH v3 0/2] memcontrol: support cgroup level OOM protection Thread-Index: AQHZgBDkVfbL1Z6yKEKz1c3DJxWsna9OEngAgAIGrwA= Date: Mon, 8 May 2023 09:08:25 +0000 Message-ID: <66F9BB37-3BE1-4B0F-8DE1-97085AF4BED2@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: <6DABA74779717A4397036B76658557EB@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,T_SCC_BODY_TEXT_LINE 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 QXQgMjAyMy0wNS0wNyAxODoxMTo1OCwgIk1pY2hhbCBIb2NrbyIgPG1ob2Nrb0BzdXNlLmNvbT4g d3JvdGU6DQo+T24gU2F0IDA2LTA1LTIzIDE5OjQ5OjQ2LCBjaGVuZ2thaXRhbyB3cm90ZToNCj4+ IEVzdGFibGlzaCBhIG5ldyBPT00gc2NvcmUgYWxnb3JpdGhtLCBzdXBwb3J0cyB0aGUgY2dyb3Vw IGxldmVsIE9PTQ0KPj4gcHJvdGVjdGlvbiBtZWNoYW5pc20uIFdoZW4gYW4gZ2xvYmFsL21lbWNn IG9vbSBldmVudCBvY2N1cnMsIHdlIHRyZWF0DQo+PiBhbGwgcHJvY2Vzc2VzIGluIHRoZSBjZ3Jv dXAgYXMgYSB3aG9sZSwgYW5kIE9PTSBraWxsZXJzIG5lZWQgdG8gc2VsZWN0DQo+PiB0aGUgcHJv Y2VzcyB0byBraWxsIGJhc2VkIG9uIHRoZSBwcm90ZWN0aW9uIHF1b3RhIG9mIHRoZSBjZ3JvdXAN Cj4NCj5BbHRob3VnaCB5b3VyIHBhdGNoIDEgYnJpZWZseSB0b3VjaGVzIG9uIHNvbWUgYWR2YW50 YWdlcyBvZiB0aGlzDQo+aW50ZXJmYWNlIHRoZXJlIGlzIGEgbGFjayBvZiBhY3R1YWwgdXNlY2Fz ZS4gQXJndWluZyB0aGF0IG9vbV9zY29yZV9hZGoNCj5pcyBoYXJkIGJlY2F1c2UgaXQgbmVlZHMg YSBwYXJlbnQgcHJvY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