From patchwork Tue Nov 7 21:57:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449412 Return-Path: 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 86E27C4167D for ; Tue, 7 Nov 2023 22:00:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9B68C8D007C; Tue, 7 Nov 2023 17:00:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 96E368D0089; Tue, 7 Nov 2023 17:00:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5147F8D007C; Tue, 7 Nov 2023 17:00:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3690D8D0089 for ; Tue, 7 Nov 2023 17:00:52 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1221AC0908 for ; Tue, 7 Nov 2023 22:00:52 +0000 (UTC) X-FDA: 81432528744.13.276A05D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf30.hostedemail.com (Postfix) with ESMTP id BBE1A80008 for ; Tue, 7 Nov 2023 22:00:48 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=SLNLHEIe; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=woy7ZwAi; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf30.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394448; 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=CaXGc/Oz6KRDRsIiJc13vxsw+xsuSELjGpa2xXje9IA=; b=vdQuVN/kcZqdCTv3rSb4T84IsUD2Outpt67x/MbQPtjQiRDDoUs6+ArCtGKGuOP6oYKAwj EOooOrTXnIKeXgzNXXEZsXe3tg3PjGgj+R2h2A73EkG42ImcDqWLnl4C9oTLvyJymizfNt nnhaiiNvecwsYP1m9u97xO1KRlCEC1w= ARC-Authentication-Results: i=2; imf30.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=SLNLHEIe; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=woy7ZwAi; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf30.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394448; a=rsa-sha256; cv=pass; b=FtjUtaDTVthaWkkXeiWQw/HPTejFowy9uF7u/xSIbb8JcdaQqGnvqceGFhvtseW+E18g7v ZGpSaslu9NIZnANEJcV9oenGYuyKnxNC2M8am0EPsZ2Q4muKUn7NYSE56QAD7hkFdNU1gI B9S70mzeig9Pko27kgvcBzyFG1MX3QA= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJpqo020714; Tue, 7 Nov 2023 22:00:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=CaXGc/Oz6KRDRsIiJc13vxsw+xsuSELjGpa2xXje9IA=; b=SLNLHEIetUP4ICWVrxL4sP2vkzRxHamHGR7gbgPZVFbuF3Jb+Tu0ONlnzvYKPNoChabH b9mqgd/7FudcN5XKdMFFDTZ7J0o82GBB5Yx0El4EEDcq4CxDWN2WPQoHWn7FHO9pWoAY yuKKVIleEoSfPHT89ct2+T52/1Jo2Z/puC/CTekTjvGu0ZQUOnJFa0H4RZl54XeyDImQ CKhZ9mcdvt8SwZMqWO1sqawXIqn+LG4uQkrvwx7hMf3CBSKZsAismXGPiuIwW7ZuDzvl SjPrnuXLv7mYNrBFyVntLQ+Fxz0srnZdDBp3Anf+VTCSIZqfE3/kkGqq3EAtz9jkbEc9 qQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2202uc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:28 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LIhBG011123; Tue, 7 Nov 2023 22:00:27 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1tsm6c-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVuub7GZxWUpE3P2czO6UHSuweXQrb02Wlz7wgeGOGaMDzxVy/1zS0UEVji+72Pc/lqH2VOniFok9rlscG/+K5mOB5PtqSXm2B542QoKOh3t5kOe/dJimxQqQi1uCk5ahv4UzkVBenEc0YbcVCegp1s2cZu2EPWl8XN3K+F/h8tjuBgGfog1EsZvidGH8yPI1oJopp5gVqh9JlgLBpterEpmLNOBLjE7zWNnrW0C3vwXlbDC5DoB/VbXyIClArlUW+GijmMgYEqKN6VX+HfWl5msjES2O0+kzvV71j5QUcG4GgxrIqdvWjScWnvunQ93Fo4Qi8DJ/tRbmCFCorY5kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=CaXGc/Oz6KRDRsIiJc13vxsw+xsuSELjGpa2xXje9IA=; b=B4KjNQGETrPgNVfSNDbxJ+7mZoySCZlIm9jJuySlsK3dbnsgsSEuXXHXa4l59DjniR7n0KZYc47zT2YZVeXPu3qyiCV7JCrlK6SJgYu1/FqKYU5UiJrYiHvD8PUmiqqWdIlrSHj5+bgzzROZXbRj6YJ6UmVwizhfk0T3bxz7y8redr6c9J+PEM9ePeML6XmpS8h0cyezhPd1vPTq1g6eBpREo+ILwRSje34CBTcHMMgxfg4zSXhMzVSli2YVIY4zo0C7QAnwMnwGVsLqOaCLE5PmwfyPje0GNv0fY5zZOgBqfsh2WqxZwO/EWk8nhdKJRg70PE7n8NEkSicZfODHVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CaXGc/Oz6KRDRsIiJc13vxsw+xsuSELjGpa2xXje9IA=; b=woy7ZwAi4rjuujtCiF6ZesVi1/Kz9bWINInVDaJTR8VmdCqXnAX+tmIgkHSaOe3H8yC1jPF9CmJ9VxbCNp6AQr5bICL0VrAE7JZ6r5VoTta2mr9Y3RatthKr1sT9ht7Fylk+VkKyMcuH1GG9xRR/3cygzIpApsi033ckiZVQ9UI= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BN0PR10MB5318.namprd10.prod.outlook.com (2603:10b6:408:126::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Tue, 7 Nov 2023 22:00:24 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea%7]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 22:00:24 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, Ankur Arora Subject: [RFC PATCH 53/86] sched: fixup __cond_resched_*() Date: Tue, 7 Nov 2023 13:57:39 -0800 Message-Id: <20231107215742.363031-54-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107215742.363031-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> X-ClientProxiedBy: MW4PR04CA0221.namprd04.prod.outlook.com (2603:10b6:303:87::16) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BN0PR10MB5318:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f17e49e-2f74-4ea2-c9e1-08dbdfdcf167 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /eINutye8vuGw+fverb31mbXI+MGgroNkg5XJreKba7LlfAhefhv55ZCgLIubzGp8fW8XRvkNDe8Oa3lTOUUg6gYFt1KCBTvsXXAOTru42wuy//4lHu3S7GFs8GOD/8P5PKD1zsyeCC1wDj1/fbb5RChzx2a6robp3F4Wk7anfQyGqLIJq07Hv6MFfO1O5A4vw1C4PcI9EY5+HXQivJJYvICLsrRij+Psdxc5eM6AjP66wxMb4kYn5dC7YzAEGv6d39TQz1hKb4eifyk0Uq4dxI3vc+vVe6GdYceDxJbpOEARfRdpgFJf8nJjtbjyJeZgjDlcubGwy3aMyuV/ziWKs3v3uq/s9XK0BdHJg5IFNaYMLbIcvomt5RnnHN18CK7R6qXNGTpRYO6CaZjijxFQ5tFhatKXHEW3NaHpJX91jY6jSYwrAaynK4zAlOngeAC0jyfjtr3MFCGGmnX+VnkSfGhP73ZVyQ61xj7uPolkmoy7dZ0RFNDeJTHkG+VuIe/2QNV9miUOjliXGzHjsqjTvK+oNIuNBGpxN6uDiBjo012xuiOHge+tAGP6bZXtNdt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(39860400002)(346002)(396003)(366004)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(1076003)(26005)(38100700002)(83380400001)(5660300002)(107886003)(2616005)(6486002)(6506007)(478600001)(6666004)(6512007)(36756003)(316002)(6916009)(66946007)(66556008)(66476007)(8676002)(8936002)(4326008)(7416002)(86362001)(7406005)(2906002)(103116003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QsT1esiuXl92BhmwdkVdF0oqxQcRY8wG8FN7s4uhJcpW7pykwx2cYerIsC6EIbQlVvLTeNv6mKIZ15FKuRc7GEI4oq34WkbPQBzGqWCeMdCpxWUrvxdWlLED0iKbkPnK2pOYwmNYp1j0APq1H8KsqHMxVaTxGZ5VcCqsJ/QR3B4/yb+8oQpji1CpeNHH5k4hyhkzG0EGOMC4JVerHoyVBtnzf1pyNDhXQ8xIUG2TDUjss2cSGud5YWp1WmBKcLz/OKdPBzqlE8tIks5VCwpbg8jD6x61RqQykytPXkQeLYsnMUkYoDPzALdh4LunaP7iuku1p7MR9OLCPmFlEl/RWCWGux2vQuPOpMjY6ARhOj4ZjwPaKMmMXk3448aLfqB3d5F6TCBOdhw2KEDwxo5oI1jMXqtESe8S0X4BN5Bea9f+MVal9gAQd+l2XkM+VXiWWcEB8ljbCGLP/PXdWreyYQzDIeEPLJJscwFkN4IqKhCo3PD0/4jOKKTURbNpAKZ5zS18t/eK/lOsrgKgnn0IeQYjqzn508ljlhfaq/iQTrLXgQ+ELKTliszB8amr+xNBf/Ryi6weca2msBZ3jFdEAolQAHMBwcvNTaei3kOVe7aOsA1BL/vmmswO4ahS9/o/RbDNakIDKF8BKOCmEzceNwEo7Q3VCpTbUqrHCkZLxDjDdhOZ6jMQV0RxezjXz41dm/ZUcY48326oK/5tQLzBJ0vYs/wFdFugBxeDniI6KNB7ITt0ea8UUMiJHaLLZx0hj7IOcbkNqtyD1InZ8twRORSGCTL4y3KA0IjbWVMUaYzSsAXJEPURIX7yxLQDXuzcK7/843bGqhMkyTMsXpIXdVPprBaYeB+cO9bGAcFhrql+/GxfJo78U3e6/4S96/G9zOCQxCV5DO0vA8pwn3qUHCCKxLIK4FyCKRyU2S/44u1khAko5ikjlha97xPgrjVyRFbz0pwOktHTBW0iT4fBaE2w4qV70mV7THiCRemuqSf8Oxpb8/njMp49S8TspkS84+Q30bP24yyi8AAw4BYXP6ea/HSftlBWEF8lDsUvno72mddPMwo1FD0cVS0i0HSBk69QZuTVgQ4MyLNhtQqJWirlvXyTrOe0tJpFjkn0yY6iwFSOw9WXWuNniP9nlcMo7JFsJGbutXlIx+MJZLxUxKTF6yHNOILpxWN+hdJvb59LjsuCMA72lQPC4FNK07Sb8vwfN/tH21PZOA8Es0id3PedPsAricoaJ7K4CcY3v86vPvAsG6ihGUJSvjXR1DqOPWkLtoDnrLUfKNQ80Bw8yN5B7snOHqC4EF7/pL1iODp5kU4uXOwxn4G4BhZf81s4KKz2XSNuL2Evso4bVBjEOKe2NhaQE2xzQUtaTPfbo6HyZRK6yj0n712wXuq9GMBp1zjVZ3KmUPPZXA07esy4vqshfUTWmuneMRoE5HqeD8vwjPfJHiyvYX3PAvnyqYhU1e3mFDN6CWfGdlaBK6azHf839PtVckgdOLiCJp61YuflYqJuuOVgtMMy2AVsfp9k7GhvcowbR+cWArWxH8M/gLkAay03WMmD/dQOq9HgoA0XBeBg3G7E9cHdct8SnYXgwuzQWo5PYQnE2CIs8UR7Hg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jt/HMow/pqg3esG51IbCRneetotudD+hnOkOG5Hv2tshhfPh3wiquP3EdLHxEN0D5SOy3PTvOXMpzf9ftYXaLZJhbdlD4+73IOaf0h/58I+K9IjGxNfreiwyry8gn37IXy/kQHgmukCIaW0hVFo5c06h0syh0VoEMgAPdvnOeBZCmLou0NUIv0sqtVE/4eCPHy/T2Mx6gqxx1xiY6aSJw1jRw3J3P9guU6M4/0TjilXl9CfgQBpwYUl2sz9riRT8C1Fz2iHOi/t13mUyEDi2qK2r0vbEnw40NhWGNbG2yN6+egr07sIvzO/g7AAlxj2FDqwd+ROzefwZoLIlSi5/JKNeZtwrMHOo0/3bLqc1NjstxI9OwiB/29tR5PLLZi639ny5A26ioMVL6swBaMvpF9h8dRFcGJetF+2l0fctCakXIfEYF3yU/WxeOV2vXXn++3SnMRLf36HnKwuQj6FonPQoKEnl55ETztW+nznKq3g0x6qQvOyDX5SB4dunFiS2CXE7tSpyFss8oYiV2k1zd21CaUzYNNCFxnhbqSNV/U/TYHj76bpEd5Sn3AGRtQZood2emxLNXT7Lxn/R/tPOuiLB4cwd+38uEjY/NtOKlU+ysE+zGTx3bGVrbd8/FZXentB1NuJHRpvTKOYQZPnA2utmNVX4f5Hpms3ItjudoyCnx3fWPAhC9AywRrsv66RDHLtWqgZ/xLM/m6W0m+FqDW4GQN/Zi71pc14FDE9ttzjh8D+ExGU4OksW1nadJGnhaSinpIZnA/EmVG0UCuV69qRHB3KqMahVeL0TK2L0sVgO1KsLUiqxrgIxyl7mcZounW+2jG8afrxHLHXsj41Wg3+pirnyvm487FLPtNfwhaWFFhA/+CLXoDsZZtjPe0Bq5IncNFGxSbdYCmk04uNgJnGAUua7z1jFbjz343/UM4ek1o5GS5SUifQ/oUFoaz1InhT6rzBNnqE0o3F+BiXr/GzphWuizOYsjelSkr8ATmUMQIaIedMzej4RRJz1RY6J8z47wAKaj7EJKK/NCOiRedW51jD3jr3LW14cCtRmnsUSX4zG0T7j7ZqH0/WsEy//Ba7fzBFws77p9j7WJvU6UnJFrvACUfv4N6eOJS4eUcwFSWvYXRehp/2nZpTUlVVG0J1o1zU6Pnv13Giswqfo8FZP8Slw4XoNShfGFlm3/jqk/6XDL2iS6Y9jS0x6SldC3Dz+zvkwRbgCziFV08ZpRAJIi3dVNb3krcUAbXSEVt5qydbDE7MIGqU6GZfznM38IO0i2Hv7RiBGMCQly90WPdAVeL03lBO5UlEW71ANSMALQnSQ+XqaG7zowp3EUPXoXAYugdHS5kuK733tkvChY94QntOTBpWynXpTy5GZi/iS2KFld4uDyUUqH64wVuiVpNrMKt+iX4BRm3Scntg0/qHMiQ0Uq6CxISmRHOmhYIHrPz5V4jPlP/ge85OySiD3iyAebb4c6mjlxr6XyuZkJN1nGMoZPwteoaO+H1Q2lsKbxKPkXePobVqL6JFeI+U3vDD7otckgezgKMh2agJ46Q== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f17e49e-2f74-4ea2-c9e1-08dbdfdcf167 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 22:00:24.0400 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w2rLaLrl3FGZIZMN8Xs+d+E3HLKmAsHgQ+AXygwiUgjLRyN+qcqcagO2+NkcPW7TsuK4CY4QCr+CmDgNXd3kUZF3LUa3skzKu/HJLvg8EXY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5318 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-07_13,2023-11-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxlogscore=816 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-GUID: mRrjxsjl77RPY7m7nPFCIu2smu0fy_gC X-Proofpoint-ORIG-GUID: mRrjxsjl77RPY7m7nPFCIu2smu0fy_gC X-Rspamd-Queue-Id: BBE1A80008 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: qcmnkmxrpfd8qwd9k8wace1d4e157njq X-HE-Tag: 1699394448-838703 X-HE-Meta: U2FsdGVkX18s2aFtjNs20LNC2AyrkBTa+7NT0YJ+OcXa2htng225hN6j3LmjidqodtLojEl9JxnMEeBGjSzq3ppTTWI8mWbifDZ5Au5osuSoQElsTRzzKoBWcc3w5uF4EShEvaIzDMtYYDfTUVV/8HpSS8T7XxaCM0guNj+Zcg6ZM3P6cgfPv2rK/NTl0byDTLNvDne0fbP9IKr/8K6EPy7A5EIGS8uXhy9ZFdsFJUVzp/pVE0sGcyOECHpJ3qfO/Ba2P+FRn3Ao5wlv7ByL6oC71FEOPt+vlBDzzTe/XqdMEhqh0Hzm21LBqfi3obeEODVqzXKgB7sE8UZuuk2xB0RPB8Nt7vqfhTDnD9Jj8tXkM6ZUriUuDNax9nhibgRo25p3h19kaujk3j+lArIcB5RqKRnvzv9epWn7G/R0b9OKrE5w4J99DehYjEWfKGNgFigOeaq7Bd7IWgbIcYRntM2VvJ5KjkFRPauSJjaarzw+eoQXu+q7aNf/6KHLNQ2972sUQszUsyU2BTNd7r5f2+2zw1jfEu7bq2EYw7aqEoBhi7ETxO+SEzxtFFi8Ei8cLXqrhCU6GQC+1wzXSX3slGGQlE/TgaY4hEJCXOyAnjHRCcZeiyFd5PO7k8/gLIRy7IeTYNIojXUUfDtNhwCGSy1wY+1iCShtZAMjcGA3LO4/1UudCysW1B0qLP89i6XU2j5iRkk27CDDI13dAxT3m4ZQHISzjR7G905/aTa4s6Sy++vDzcsK0prOxUM+MmOz9NTpZuoNqlQ17MVTWcs393KoQipKbbUUzyV7sWPWByUMu4U8QnNivORJUN4WvS9eI57Qnd/MkQx7JIqi0SzC6z6UWiKfbe4BS9JJg1jjYl44uCcFupt8j0PzoTg0ML9cuny29uGSBRfYgjx1ltVlTews2iP0C7YR9SaK+/5SSdjH0/j3q4ZVzIoz01P8ll2DMSfoVv468o5x9khwun0 JW46l15b +NpmCiPa86mGR89nmBC6tvoEnZLTioHWuShMiVrBp6aHZx3uS+s6tZk+qX/7FYmMf0pSmhHTtzaBVfZNv00fXDpXWi9CRDbLkDydx3gYKFsJfQb5SC43E/gQMDjPfXbvHqi+RVGWwhnI4d0Z+e3bmTo15vuI1RiwI5oK59gXMTe7zQZI/2nQZlHyXkg7oGoqFAqQUNGZ+0REf38lSVYPH+JNW/TVDFaoH8g+lDFc+aZGpc1viI+w33pNxayNFOYCQGVQmIeKCbOyhrt4fvSqlPv30GVdMM0cyhfyPBGzgqXa9rHf2rVpq2QjqEaiFctAksoM1nh8LIwRMb0C6Rsv25cGkaw62vJ5vQWCtZ/6DgD/iCXm0F53nGV04AUTSIosBh1pjFeC6DOcK6BVoloCRJHuSXtIOcEiqj9PKPVeQe1bCToA8sO2mU7ryRYB7w/n8MlkIweBxfUZdGvYdQIwJvLAZZA== 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: List-Subscribe: List-Unsubscribe: Remove the call to _cond_resched(). The rescheduling happens implicitly when we give up the lock. Signed-off-by: Ankur Arora --- kernel/sched/core.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 15db5fb7acc7..e1b0759ed3ab 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -8595,12 +8595,8 @@ EXPORT_SYMBOL(_cond_resched); #endif /* - * __cond_resched_lock() - if a reschedule is pending, drop the given lock, - * call schedule, and on return reacquire the lock. - * - * This works OK both with and without CONFIG_PREEMPTION. We do strange low-level - * operations here to prevent schedule() from being called twice (once via - * spin_unlock(), once by hand). + * __cond_resched_lock() - if a reschedule is pending, drop the given lock + * (implicitly calling schedule), and reacquire the lock. */ int __cond_resched_lock(spinlock_t *lock) { @@ -8611,7 +8607,7 @@ int __cond_resched_lock(spinlock_t *lock) if (spin_needbreak(lock) || resched) { spin_unlock(lock); - if (!_cond_resched()) + if (!resched) cpu_relax(); ret = 1; spin_lock(lock); @@ -8629,7 +8625,7 @@ int __cond_resched_rwlock_read(rwlock_t *lock) if (rwlock_needbreak(lock) || resched) { read_unlock(lock); - if (!_cond_resched()) + if (!resched) cpu_relax(); ret = 1; read_lock(lock); @@ -8647,7 +8643,7 @@ int __cond_resched_rwlock_write(rwlock_t *lock) if (rwlock_needbreak(lock) || resched) { write_unlock(lock); - if (!_cond_resched()) + if (!resched) cpu_relax(); ret = 1; write_lock(lock);