Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp780002rdh; Thu, 23 Nov 2023 19:16:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt3YbWicMHTmMluePZgoS695eJEp2LJulhx0W2H7CrBIS/DcaeLflz9RaZAw6v7tcvCB1L X-Received: by 2002:a17:902:d88b:b0:1cf:7666:4dd0 with SMTP id b11-20020a170902d88b00b001cf76664dd0mr1394513plz.39.1700795767859; Thu, 23 Nov 2023 19:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700795767; cv=none; d=google.com; s=arc-20160816; b=FbSLrIob0fbtEEfz0OcPW6wBxMZhF/a1bmKBZ6nAV94hZ0OOlkmOGQvfhkpZC2Z7wI LYd6YL3tuGMvqfVYkrtmDggS73hgAWsRAUKCiOjqCpTGiVo4FY8u2ZWiyDdaDffP0xE5 qWQZRSyzCqbAkmO616ly3xI6++HP7qcARfNHwE67m4UOIDU1nHG/C+/J61EnepCiJHQ6 hxX68ta/V2NAJvrEDdIvyBO53FL9xwBfkHoiH4+eKKrzXeBdMK6SXe6x1Ox6Mi/jB+i6 N7wJmEqTYYo/+ANkY6aAzshsCvzj96+dXCwiPN/zFom1mw4lurbuizzZzcDaH+Mucys+ igYQ== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=NS3TzFbR+8ddOgaBed4wyQ4qdmsoZF8u128saWCcjx8=; fh=9cT4RE+Z3XTWrJhVbx5lV34+ojw17WW2JGDTvkoY0Zc=; b=zQCc+TE4Yp/Y9pETrLxgl184+yLAlbjEvLnEmrBDoN5MOzW65Cm/eGTAi5xkwZtwIi 6G1iIe6IPk9kmT0W2VdcCbIK7z1D/YlmSwEOzlR6x5hQaVUIyDgnmOTQGHx1sEbj8QR1 RhYdP5zX2LLoV9omnPkxYPXYJoYw8wGURaevQm6wvqYxHlqrXU3gjJOcU69sERGvRmqB mclAWuz23GHx/aeTRBTZ+OdxNJQ/8WlNdghO2ASWXjUC/eCs+Su9RihLCAJYwtmHyZ1c v7QWeoArYreFvvAjyNXp4AHlkcDeADheY6k8nA0Nm0GdY36b+Chx0urQ43ZItJXfqEUw I5DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hihonor.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l11-20020a170903120b00b001bb792749a2si2549500plh.146.2023.11.23.19.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 19:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hihonor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 119F1805F4A8; Thu, 23 Nov 2023 19:16:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbjKXDPq (ORCPT + 99 others); Thu, 23 Nov 2023 22:15:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKXDPo (ORCPT ); Thu, 23 Nov 2023 22:15:44 -0500 Received: from mta22.hihonor.com (mta22.hihonor.com [81.70.192.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D812D6F for ; Thu, 23 Nov 2023 19:15:49 -0800 (PST) Received: from w013.hihonor.com (unknown [10.68.26.19]) by mta22.hihonor.com (SkyGuard) with ESMTPS id 4Sc0Tg4XnGzYkxhQ; Fri, 24 Nov 2023 11:15:03 +0800 (CST) Received: from a002.hihonor.com (10.68.31.193) by w013.hihonor.com (10.68.26.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.25; Fri, 24 Nov 2023 11:15:46 +0800 Received: from a007.hihonor.com (10.68.22.31) by a002.hihonor.com (10.68.31.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.25; Fri, 24 Nov 2023 11:15:46 +0800 Received: from a007.hihonor.com ([fe80::ccdd:b4b:ae86:edd4]) by a007.hihonor.com ([fe80::ccdd:b4b:ae86:edd4%10]) with mapi id 15.02.1258.025; Fri, 24 Nov 2023 11:15:46 +0800 From: gaoxu To: Michal Hocko CC: Andrew Morton , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Suren Baghdasaryan , yipengxiang Subject: =?gb2312?B?u9i4tDogW1BBVENIXSBtbSxvb21fcmVhcGVyOiBhdm9pZCBydW4gcXVldWVf?= =?gb2312?Q?oom=5Freaper_if_task_is_not_oom?= Thread-Topic: [PATCH] mm,oom_reaper: avoid run queue_oom_reaper if task is not oom Thread-Index: AdodQUgb0N3ZJU2TSUK/4IicgpocdQAZdvMAADdSyGA= Date: Fri, 24 Nov 2023 03:15:46 +0000 Message-ID: <242025e9a8c84f6b96ba3f180ea01be9@hihonor.com> References: <400d13bddb524ef6af37cb2220808c75@hihonor.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.164.11.140] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 19:16:05 -0800 (PST) T24gVGh1LCAyNCBOb3YgMjAyMyAwODo1MSAgTWljaGFsIEhvY2tvIDxtaG9ja29Ac3VzZS5jb20+ IHdyb3RlOg0KPiBPbiBXZWQgMjItMTEtMjMgMTI6NDY6NDQsIGdhb3h1IHdyb3RlOg0KPj4gVGhl IGZ1bmN0aW9uIHF1ZXVlX29vbV9yZWFwZXIgdGVzdHMgYW5kIHNldHMgdHNrLT5zaWduYWwtPm9v bV9tbS0+ZmxhZ3MuDQo+PiBIb3dldmVyLCBpdCBpcyBuZWNlc3NhcnkgdG8gY2hlY2sgaWYgJ3Rz aycgaXMgYW4gT09NIHZpY3RpbSBiZWZvcmUgDQo+PiBleGVjdXRpbmcgJ3F1ZXVlX29vbV9yZWFw ZXInIGJlY2F1c2UgdGhlIHZhcmlhYmxlIG1heSBiZSBOVUxMLg0KPj4gDQo+PiBXZSBlbmNvdW50 ZXJlZCBzdWNoIGFuIGlzc3VlLCBhbmQgdGhlIGxvZyBpcyBhcyBmb2xsb3dzOg0KPj4gWzM3MDE6 MTFfc2VlXU91dCBvZiBtZW1vcnk6IEtpbGxlZCBwcm9jZXNzIDMxNTQgKHN5c3RlbV9zZXJ2ZXIp IA0KPj4gdG90YWwtdm06MjM2NjIwNDRrQiwgYW5vbi1yc3M6MGtCLCBmaWxlLXJzczowa0Is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