Message ID | 20240805153639.1057-2-justinjiang@vivo.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3DDCC3DA7F for <linux-mm@archiver.kernel.org>; Mon, 5 Aug 2024 15:37:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 69C236B00AE; Mon, 5 Aug 2024 11:37:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 625C66B00B3; Mon, 5 Aug 2024 11:37:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 402166B00B4; Mon, 5 Aug 2024 11:37:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1893C6B00AE for <linux-mm@kvack.org>; Mon, 5 Aug 2024 11:37:00 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id BD7891A0376 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 15:36:59 +0000 (UTC) X-FDA: 82418594958.09.A399900 Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11010049.outbound.protection.outlook.com [52.101.128.49]) by imf26.hostedemail.com (Postfix) with ESMTP id 2DFCA140025 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 15:36:55 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=OXnWYJA4; spf=pass (imf26.hostedemail.com: domain of justinjiang@vivo.com designates 52.101.128.49 as permitted sender) smtp.mailfrom=justinjiang@vivo.com; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722872186; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zTdca26mZ0+y5WvCdBJjNuJ1RkRd0oVINsau97sg0cY=; b=jJsZXD26EkbAYFWwQpaUn0KqVQVSv+H87d6i9DnRrjjHrGR6UqxBpJgd+SRovANhRhxVVw H6hqp+fu9xigtep+hDZnsyrdRGP3JYXShpMJI/jrSl6KquRnKOw48GBmOVHMB68SLooZgq ChyWMp5ntdwT4O0xQbf8G5k+g30XklY= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=vivo.com header.s=selector2 header.b=OXnWYJA4; spf=pass (imf26.hostedemail.com: domain of justinjiang@vivo.com designates 52.101.128.49 as permitted sender) smtp.mailfrom=justinjiang@vivo.com; dmarc=pass (policy=quarantine) header.from=vivo.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1722872186; a=rsa-sha256; cv=pass; b=Wgt5G07PVCLV81zDo2c5tjHexDi1M0UeeARi5hxO+cqut9hbLiUNIAfjDDxsKZVfXAHM0T J3xFkSR5Pp3fAfbxCResOcF4WpbAOIeJxNj3JUC4x3GPMsgn+hxStBuur5vzdbTchKrIop 0xUCknKs9nmqHJW3qICW6oejEa/n210= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JIWxvyI+cuRNHjWFMGBzhvfdxHkUT6ATmjQpqwunftJ9rpkGdtOIsctdMFZbSVLiMj2Uh5E80FetvWLxCjeXpHajVYn4unBR0FFZNcrRPsHcaDwIInQ2vOaDf3TrA10sdV28q0Hx4cSMl5GlLT1NCcgHTFXHYqQJD6m/4bkLHmQy6HoHt1C42i/L7wckQNb8sXmIKiQkTwKUrnvgjQ2CDW+LhpxjUhYJDFOT3/kgAWAL//H0z9SJ6VSX/lvD/1tEZY8NDHrw/2Jmos+ll655JYKAC6I+3RgtTS7JXgPe8c7g0L7EuXnaIOxsZAZRCog4ziSJMGE8VyX2kEaHqwk64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zTdca26mZ0+y5WvCdBJjNuJ1RkRd0oVINsau97sg0cY=; b=Nz//xa4S7cYUhQ6kglg+60qstGdfLBhFNI9mBNVpneEXJQYCe30VM4m1bRlED0UGPcDavR7lugKP6Um1H5qgtcErMv4fJVz/7hjIOeMTnvc3MSl2mqudtmjFBPQR+SXcJQfxhdZJc+2ILQH3XI2hHPKDYh0KCtET1bSigNHudOo5Fgg3k3+SC6+1FuCC9bc3OOSYJJrQ0wvchwJMjz8femRajV95D44K3Hy0JI9YApkHgX2QIxsQUsEdBTYTGRcJm9Xn9VoIKVJc+GA/q+kKgDnHQOMGQMXon97mB8I2i42fpZHj02r2gkU7OlWnupGDLsJtFDk/tI8uAdTUZDDGkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zTdca26mZ0+y5WvCdBJjNuJ1RkRd0oVINsau97sg0cY=; b=OXnWYJA4Kc33FWLfi9j2rKufcYjguAN/sQ6XH7dIG9ZNRhvysQqM4kGMi+wkY/EGH4yKfjgIWGem2hddpGgOSbKCX6BZnPXOeK7wGToBXgxXYUQF5PP4/DDO8lnjUZxfqSe0HcQTmONhmPKlTzi3xgAos5CuE+xitNzE7ce6jVfOZ2+wsZxbUa7Nl/ox6u3tLXzdGD4YVgDn5rq32hxX6ZYozLOlTNasqCP2k4yX4YyBwDN7hcFBtpsfW2tSghRasVu4kEMnXNO10r6o2//6ZzWzvE1klV2Nhl42TTmBDqpQNWZ4e8BZel0mlR2s1j1yvewiTEkDiTdLLRJkKMjPIA== Received: from JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) by OS8PR06MB7322.apcprd06.prod.outlook.com (2603:1096:604:28c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Mon, 5 Aug 2024 15:36:49 +0000 Received: from JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::ed24:a6cd:d489:c5ed]) by JH0PR06MB6849.apcprd06.prod.outlook.com ([fe80::ed24:a6cd:d489:c5ed%3]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 15:36:49 +0000 From: Zhiguo Jiang <justinjiang@vivo.com> To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Will Deacon <will@kernel.org>, "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>, Nick Piggin <npiggin@gmail.com>, Peter Zijlstra <peterz@infradead.org>, Arnd Bergmann <arnd@arndb.de>, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Roman Gushchin <roman.gushchin@linux.dev>, Shakeel Butt <shakeel.butt@linux.dev>, Muchun Song <muchun.song@linux.dev>, linux-arch@vger.kernel.org, cgroups@vger.kernel.org, Barry Song <21cnbao@gmail.com>, David Hildenbrand <david@redhat.com>, Zhiguo Jiang <justinjiang@vivo.com> Cc: opensource.kernel@vivo.com Subject: [PATCH v3 1/2] mm: move task_is_dying to h headfile Date: Mon, 5 Aug 2024 23:36:37 +0800 Message-ID: <20240805153639.1057-2-justinjiang@vivo.com> X-Mailer: git-send-email 2.41.0.windows.3 In-Reply-To: <20240805153639.1057-1-justinjiang@vivo.com> References: <20240805153639.1057-1-justinjiang@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0001.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::7) To JH0PR06MB6849.apcprd06.prod.outlook.com (2603:1096:990:47::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: JH0PR06MB6849:EE_|OS8PR06MB7322:EE_ X-MS-Office365-Filtering-Correlation-Id: fcecb7f6-c3ba-459b-2d21-08dcb5646c2c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|7416014|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: JdMay6IkSGrZY0QT9/LhwHRwBM4bMprEMxHJm6mu4XbYNsb158X9Cxu0Gt6H3KdjW603xngOS76ya2ArEysWTeA+P4CddjkAZwUzo9PeECRsfJgdhUjiGl7sG7q57+cM3e8YhEMyat6M7opAe0yUa8BgfIbkKJqt6pn8S2L8fNU+9sc326g+re2AmTe1r4foH8t5UMczbVe+nSOvftGGH4nwA5LoEsbEKAoFcBJ58VTa09gdzM8m+0yTplpKk+7nps4iCM3yl/oS3hNky9bLUOfiCmmtJSl6p05GDSsMXiQUg0ocpwQskU8sus1+L6WHh3/Po7WCyGNQOLf3U09i9atXBTVbh2XHid219b9HDRw0w947KBKE8e4wJnoCA6SXYF03wYgjCrSv3oqNg/U6gWgWMkBPwxWiD6/yfmwt4/rgEfGTPo6suxfjRLHvBdbwCraQMgWCFG2Efx9G0mpg93eQh0QE8GPOBFeLxUDle5jNe8W+Gi2YGwYdF+PD3Wpmzhp32KJljJCGHxK4SZam9qAUQl2Wx/MIL3OPh7jE2RojXJJrJC+CTg+SZgiE4yW4H68fvCiN49zh2uw4O46QG64BlYhtCPbMWs07foMesYq78Yxoq4BHzq6Md0HqSQezNCuZgQGBm49hLEO4B49loO1LKn9M9dk7hN4tH8CX9XElVYegYopGDdpuTO1BqjeOhvW2K7DF4TjxzgnyAD+MMbjx/acZXRq8H6Is+A222rTPlty9Z3Q94AhGNg7uLx7esIRKqSoymWp6vuOC7GVaUKCZI21iQL2YW5PQMzPbbPxifmfPYUhtQOufqLjusIWYCoYZYI9oExLLMMYOs2g1+wJxSkqyaijML9+qmW9kInPHRoMPn80DrdLX2BwUdoA3B9/OQqKsv3Q21nSDLAd/nAmEasoR/nNpXSKmORBIjn+/dkaSJmMhWleYPpBFbk+6dcgxcAzH6NR7nvCl6QfD2lINkpfAGWKwL1Z9gAQSc1vTDv8rjInMIf3pDymhmAcwGKKdbJdY9cT5LaLpUb03nAnpPOrl/tEd5yMDyTfnt9gRmRAgIyMAQ4FO/brFUC8AynOJQWEEej8TIkvfmomnXuNYGMLTAcRRkoLdRFpsgOBS7QF+6LgOYZf18c26sAsFasIhfRBqXRIljAusNNE06TdzDF82Wt/6r32K1a8FsdrfZNx9FAxfEnVic0oZk6jOMKvyo1r2js/hvfCjwJ4If2/34glA6iDss5rH2YmnAUwWni9YvuKTZogWv/YSho0y2ug/11Hp/MB+XAXzryBxJI6qQ+XFUMruiT9i5AB9MZC9eQxizcUHPSn5GFFZ+BrEpjWmtY8H+qRQCSGVPL2vlAxkQKZnkv8j+ciPap5Og+0NVwXSvNmAbuJ0uyTH9/l6+voaGU71qHOy6ho0YLc3O+w5aEh+EgAcM/sVvAaqx9w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:JH0PR06MB6849.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(52116014)(7416014)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam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Dc1noQ0H6XZ7FU2Daw2kPY+H9PfQRhtQkw+kuRxNEAxGv6UjBQfgOuWKBccx6/EDfQfqu96LQ0pfCA82gfSqoTndq4tXIJCMyCjsMifKaawGLOU2OhPwrAckSLHGQtGm4wnd0F50/Fs62yoM154gDXapMsorB2Yqvyzag+YwfyAGjrBNfQXMpE1VBWzwTSluGn3X38POTelWvLF4igqwebp2smynyEIp7ViVxAl8wUq1fY5zOMFjtdk23yjMPOAzPH6r7/chQnLFma1ehH55IuFM+YufKJM/OkXNS6rIXCiBuL0pgfYtDqfdI4t+p3EY7rg99VLHf26K70aqiIHgmHXV7v5DSITrHfguE7fn9PzEgat8OA/ZQLOoPxXgkc2TrQR8t267ucdziT4qvr6euZJBcRHf11nlC+NMNePCeqQjAwwqJnKyhcv1c7IN5zn0vst/1rXR9EcohmFOwSAXj/assUMe7TNKVMI6g0BUaAWXvt0gPPBIGHU2dOvBPSH0zPcrOrHUjwMhd6mrdYqjRk2e2 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcecb7f6-c3ba-459b-2d21-08dcb5646c2c X-MS-Exchange-CrossTenant-AuthSource: JH0PR06MB6849.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2024 15:36:49.7314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TDGo/wF5OfsdaMCw38NP8dA9iMqI7YGfrSVDwW9J1z5owg3u9cJjIILHvYqFGHypk78XecJRfXCP3Bfw9JgcaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS8PR06MB7322 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 2DFCA140025 X-Stat-Signature: spmuqsjzq5h7ozxck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ShisCB0IPUdN0l32XyhsSkm56xnO4N+44/DxacvFQ4HauWCpUX9ogz27kLvA1EPjtBxsrJDWpkvkjZbQFdahUiDX6Ft1IXbIqyIaZ+b/d3zDkqro7++Ujctb19XVik07AkRyvJVlAHlWBhzPISP2YSvlJJ0XOCqpt/ndPkOfJO0UytYCGyooEHB0fkRuPAVdBprzqgWE3i5xNwiX/9kAudgo9VXkXIHWJmyQzNBJTtHF6xgqnSSXoKNZI/BbH+84hLrRvsKZNxMYVVyFQzOPQlBUa04Eql4HOY3Z+iK8AANNrOQoImyvEpAyxit637YgNN/cqInYi/y0RtWWxyhMIQjdX/ZYJtnYqOFkX8z9iOt3ozG8X4= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: tlb swap entries batch async release
|
expand
|
diff --git a/include/linux/oom.h b/include/linux/oom.h index 7d0c9c48a0c5..a3a58463c0d5 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -77,6 +77,12 @@ static inline bool tsk_is_oom_victim(struct task_struct * tsk) return tsk->signal->oom_mm; } +static inline bool task_is_dying(void) +{ + return tsk_is_oom_victim(current) || fatal_signal_pending(current) || + (current->flags & PF_EXITING); +} + /* * Checks whether a page fault on the given mm is still reliable. * This is no longer true if the oom reaper started to reap the diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e1ffd2950393..37054c94031a --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -98,12 +98,6 @@ static DECLARE_WAIT_QUEUE_HEAD(memcg_cgwb_frn_waitq); #define THRESHOLDS_EVENTS_TARGET 128 #define SOFTLIMIT_EVENTS_TARGET 1024 -static inline bool task_is_dying(void) -{ - return tsk_is_oom_victim(current) || fatal_signal_pending(current) || - (current->flags & PF_EXITING); -} - /* Some nice accessors for the vmpressure. */ struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) {
Move task_is_dying() to include/linux/oom.h so that it can be referenced elsewhere. Signed-off-by: Zhiguo Jiang <justinjiang@vivo.com> --- include/linux/oom.h | 6 ++++++ mm/memcontrol.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)