Message ID | 20231107230822.371443-9-ankur.a.arora@oracle.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 F315CC4332F for <linux-mm@archiver.kernel.org>; Tue, 7 Nov 2023 23:09:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 81457440180; Tue, 7 Nov 2023 18:09:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 79D9044017B; Tue, 7 Nov 2023 18:09:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57961440180; Tue, 7 Nov 2023 18:09:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3FFE544017B for <linux-mm@kvack.org>; Tue, 7 Nov 2023 18:09:17 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 1E280A066E for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:09:17 +0000 (UTC) X-FDA: 81432701154.21.8AF90CD Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf16.hostedemail.com (Postfix) with ESMTP id CE8B0180022 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:09:13 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EJDYxZ4U; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CeuPZ4lG; spf=pass (imf16.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"); dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699398553; a=rsa-sha256; cv=pass; b=HrBoQSEPWAabhFlKHMesoSbk606apRc7+DwEu7ZN+G5+LJ7+eslOsTArHlD8RItyuj8krJ bcFnO69t9bCuCCCe4BhI9IFvMvxqRI1s7hTVsOBjMyqj8beQMr4m3Jf1ZO+jHLfcdAJ7zD Rb7h+/8Cs2+jIsutKXmCRwjdPDGUSgQ= ARC-Authentication-Results: i=2; imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=EJDYxZ4U; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CeuPZ4lG; spf=pass (imf16.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"); dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699398553; 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=wuuI4Zq//eIf7z3jbSZj4GH7eL+Dj3jet/RMEv0kkmY=; b=wRsdaLJo9DYdds5jq3SKPv1e/4m6ledweP4OWdoWuLRR01BKRyMN0xFkXgANdUmePjW4yi Klrx/zm7cLHSbZ2pPre1hWKFSKQbJ26K5Y/tzMvVBJcxj9CsffQrzRFQtV14wwKtqdJNWv 9lZtcBlmFbKM76woSGVfuVfU4LT0cq8= Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LK6Lr026463; Tue, 7 Nov 2023 23:08:55 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=wuuI4Zq//eIf7z3jbSZj4GH7eL+Dj3jet/RMEv0kkmY=; b=EJDYxZ4UcH0lIjt++qvAuJmJDhqKmpCiiNyfbFkz8AF9KIpdYjVS1JpdC/eQZK4ybVM+ TNAj6qQnNohnXckdRRrPviT4ehT3BntQun50dsJjsQ2UkYlp+QYRxc3X8vi+dP12nfeM 4mJlgr05dLBVJu6wuQbBfH/o4E3uNlnc4Eo8PjvI9/kj5TWHkWQRseM6QMXAJI0pfOIi uistbvHTQbg586YYyY4Y4l2pO8Qs5LIHxftNkC0J/Bhuu1V64nXDttX7RZJ9Mb+3TX49 OboxEYIb+90QuUtNidIsgdbF61F9pFUxcTSPuTEsXORyJzLBIn1sgi42o8db0NKbdrIR 9w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2106v6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:08:54 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7N4iXv031877; Tue, 7 Nov 2023 23:08:54 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w2247up-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:08:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0TcSGxd1NL42cDaYyIEeSBruW/zqSyB7bHOipTJhwMOju+ju0bALgnlVyfS8Tu4T8Y7K9vDdF6xmdof+N6nWWo1rjJLTnHjogjj7wcRGXojdrJd1p0ILuO1M6LWlle2qOzVPGNyG1T4GZUcnjIhp9tRtzhkh9mlSGjfOYk63U7nEmmbWK7k0NqnB4Ac2cJDqDyQ5G8cASXJ7HEllEgFWCRByrLy6MtnO44M3uymWK3O3JEpOLo4Z55pa11eegymjfdIvdXAQoDbmN3TFk7eiaYpBQeYPMlth0cn6Y6JXOAgG7aFOQM3LwSIhh9o4lR3B9aNbIQSG2c7cjrFLPSpUw== 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=wuuI4Zq//eIf7z3jbSZj4GH7eL+Dj3jet/RMEv0kkmY=; b=QVhym4XZcf9a2trUtpbchXoRSrvp5ymdIUDkHn3lNiS/No+zs5wsBkyOuSJHBTljYKAq0ryjKWbf46BVsskCkaeJk/QED5p900vavJjQZXSPUt8GGN4KytCWMGR6UxgMLyKKvek2Aw/jp5YPuPRal2yv7Rt0vxPj6DEgAy0xmeU2bpjUiJuxg4G3dR93oiFQ+1tPTbtmbEc5zswI5nyrzHcHCc9OFb9ih7XSpOxPbmfiWX+NnrL8cQJeImuMFqsdLji2DaIQQBHCxfc1uGVLWGM2QqlN0FRd0tfitUu7k+YAF4rnCace6/VkEHSTugIKJmWUksWVBdCWGYlIl5T46A== 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=wuuI4Zq//eIf7z3jbSZj4GH7eL+Dj3jet/RMEv0kkmY=; b=CeuPZ4lGiiiywLjCnPoYJhPv3a5ge6OlLM7UBkVkdXOGg66jO4GrmfW2K/SBGt9H0vbhpb0LY/gGGukeEgr1ewlh39cobNnq/Dpu8APGOBYuJIetLpV/xfPeewE+wujuCbZ5IX7ckhRN0EP32stMs9LjWngscn0SK2nsVwg8Qvc= Received: from DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) by MW4PR10MB5704.namprd10.prod.outlook.com (2603:10b6:303:18e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Tue, 7 Nov 2023 23:08:50 +0000 Received: from DM8PR10MB5416.namprd10.prod.outlook.com ([fe80::c72:c098:4fc2:629b]) by DM8PR10MB5416.namprd10.prod.outlook.com ([fe80::c72:c098:4fc2:629b%4]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 23:08:50 +0000 From: Ankur Arora <ankur.a.arora@oracle.com> 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 <ankur.a.arora@oracle.com>, Oleg Nesterov <oleg@redhat.com>, Jens Axboe <axboe@kernel.dk> Subject: [RFC PATCH 65/86] treewide: task_work: remove cond_resched() Date: Tue, 7 Nov 2023 15:08:01 -0800 Message-Id: <20231107230822.371443-9-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107230822.371443-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> <20231107230822.371443-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0027.namprd03.prod.outlook.com (2603:10b6:a03:33a::32) To DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM8PR10MB5416:EE_|MW4PR10MB5704:EE_ X-MS-Office365-Filtering-Correlation-Id: 98fee117-b9a6-405b-928b-08dbdfe68106 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Q6Jb5LmgQBqesVOjSO1xVhkjAeYVzdc6fR82V705cE2PWXjGvKbibu9jAOT743i0+WpqpU4pLvxdV+ftQg8YoQH1pmOxbpKDqeLS4uq/sJd/sqPpbpTPrL0iLdFcBbn79n+5kB5fJdpyZ/yyEtTOIHFI24k5C4EkKZmwwRl0g91nbKXx10DjNoJOJSjUD3degSgmMhOzng3wiwkkHZ/2mICfqqArdx3YhFfn3uVIOkQCjccTvdvV8SdxCdXzPKFQfBN+kZzz9IPXhpKZzjaG0UK0wLO5on3qobSt2BLz4YVTGmJATM3UrDUk+tBi+5nkqkuzitOMvpFGislE4AuBwCA8lqXNQlBHpvMqC19oGxZ1mJfmDQIfHTUx0oBBmo7KFiylIiT32EtqxJXY2fZ5kaNZJyOG+mVSZCXEuseMfceLJYPFEBGOqbul2S/LvJEzuqd7WRLWGuJ8lhFeo0LV300hGqwvSf1nbg58xuAbdsgR07XikdPs/r3BK9By0PaY1Vz2l23YPK/lyRYBNnR1btofJGjir4QX57o8Y1oxmjPlYh3rHGmYzccKpILnTvP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR10MB5416.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(396003)(136003)(346002)(39860400002)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(478600001)(41300700001)(6506007)(2616005)(6486002)(6512007)(7416002)(6666004)(7406005)(8676002)(316002)(4326008)(8936002)(5660300002)(83380400001)(1076003)(26005)(66476007)(54906003)(66946007)(66556008)(6916009)(38100700002)(2906002)(86362001)(103116003)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WDpum2pjR4GeWBzz7aey7jpEv1k6PyCA0Loo7FBglu0nzBU/D1txU+CrZCZmkab/R2AHrYuG0Shc3bCPFcIo4dUSsu3tSJF92o7PmLKX4ctd1uVEAYlQDqCX20ML0UXH/n8BeLgoH31naTfxlNQXywrt9La6bybqDK/dmuKYOg/1ufM00XDTvflJEEcGz4Sahi9KdbrU5CqXTajGK7sX6aQh5l2uggbVsHrJva5OwNlTFcfxb28T4U0vYJjJbIPl2/oyd8l+G7kr4QQYiTfZZbYaDoi8OKw54dsH+pe/KFuzG7aJFZYnfN/ZTs0jirAxksvq0YIi9ikKoqhPdVYsojMSiJDdrFW1JMwkc566vlJ+g6vnfOUDdK1/WFWLU3vmywmwsmgvLJrvT2pgLEaOEbS1JRtX4yWpya1BzP5ASA40h7Ns9iG24rWabnrGORZONvpwCJE3FdNC+/6gxQrMfuldPZCaFRXG94r4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FvkKU8SN5mt/YcOkIFjdpEYtXuu48FpDEB1UiTEwy1FaRSaly4GfKJZhekmQoEbkWXIxa99JT3Z1Qcex3Rwrae4rvDzyufSKNAOrroycyzULHjIgyb9fNfJOaRVlANKHdChwGUrtkFet2ESZpjmoAnMUj1KkEQPpAdhRMiLQ6mXcCsGulYtc+TuB0g1UtfDIRN5AF2snQvPSGYRKy4z2UROH5xTUuF7vvA//Vs4CoLLTOYoimxddzWLOiQDFNqLqnuQIl3+yws9Q56rYPenjCZShuJb8xMEUY5ZXetmNvraYgR9q0JMQ3JVfEenDNCs2tsA3EQO7kcxz7ukP7BhZISB+bqOcRi8pOWTBowJpVePHYHg/PyTAOiYzZRID5LuAmhgfZzkyKyKlEC2a9LKUcnPuqUxb0rErm3DiMeoPH9+MrtpOrj3xRD9fL9Lg07kcP92w/x24M8CFaWdtwJXDVcO7r1uYf96xxK9UDeA2/3qiTIa8x7t2aVnJzuBYjOdtRLG9Fpb+GUomZ14XRxrLGz8sn2FZb+Vr6ImNATv2idiY2N9z8G4XgA/u4wFN7Gs1kV4PyYQiVejpHhnIH+EH2Y0+9ONN5R4JqzL+M896YoOKb5ZbA4/DaU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98fee117-b9a6-405b-928b-08dbdfe68106 X-MS-Exchange-CrossTenant-AuthSource: DM8PR10MB5416.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 23:08:50.4405 (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: iSgzrWUuZTRU3SiLAZFusncELudPg+LGpI6sQmCCY1FrhybJqkDLKGNxADeEH2IXZ5v4SvJjZcz9/FlQP7Ul4rLn7688uWPteI04/BjqtVU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB5704 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 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=892 mlxscore=0 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070189 X-Proofpoint-GUID: yoeV5auVAsON1BbVo38xeuAP2wWnzGxf X-Proofpoint-ORIG-GUID: yoeV5auVAsON1BbVo38xeuAP2wWnzGxf X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: CE8B0180022 X-Stat-Signature: em31ujdkh9sjqmhzb5rfza18jrt4ifus X-Rspam-User: X-HE-Tag: 1699398553-831452 X-HE-Meta: U2FsdGVkX1/yeXat74CqNwBuPnwMBUlzy3lln2YD4CRlg+Dm2odLj6DAiv+1sQMSkKX47gkvmYA+xUovERl94kAG1ejTyTV4ZGym+eS1cL6ADFUcLkR58/cTXhbtActaGjO3FN3rxtdO0l6faacvSnqGJETi15D0IE4GXtuZRqNqBaXbqZqJP/Oel7e5v8QAs2mmllK1ihfOHeIUCnQP/rzoZGTYJjmVsATLY+aJrHuWUMqbGlJS0v7JXbJbGiZ4P1I1JYUqCfA3hsjgi7u57dYcBEvtR0Pql+BaGCWcxsdmU04+Kf2fOXZp5LFCG/TgXevDB9FArcqQ7GpLIyEzB7C1OEs9oN5fvViDYS3ymAVbNQY07t0RHaEPgeaskSemymAsoptrZWXuad9krsOhaZcDEyTxybQoSEAHnosHSVv48sQL+Je4dVMQuwSgndsXIJAZ8Uum84TRBdX40dfVwMxZKnf29AiEauX14Td6gZVDisyXoLS8z5TqIWuS16n5M/U8yoUkP4DIvGM/UkAuyKUngKSmnMPHIjO090Osci+1XhTi/VcYtBvsT0ZO4kNHdzXMISTBQoN2l+mXTyKAiUikSa1LpBroNOB0f60dySP9OaifiEGWWIqDjH0ZHwzV90NZ3fI0gRbzoKGCtTxQL0g8DBjWkANDw7J/9apEP7LTknQ2Z6N3/NmqdDuVJl12LM4fAhwRJTiqumMYhsLn9LJdaYAmULjniCHHKiko2Pdt0jqfEqQzyp+JTaR8SVD4mM2mr7ptnYiBWqY8PnZKWi0OZ/nSlkWptvE2DAFFu0UbKRfkbzvjm9l19FrCbXM6ASGO5H14mZivbQ5Sw/BF13OJEBvrz7327DFLTOZIyHBe157EdlGxz65VS0YVRBn+Rc+Q3jB+vpeDTtM6fG/AIU5e4jRIsWhCkU7OxbrrhFXxzGsmC+qxYS/DahjS7VKY0pSn2WvQEfFS2JJprne j6p8sLBB py+Bho+Mg8PhdZWZjXUXmMTzexnS2oQ/JX0CaBA87HniTK4G4sJS896LhxmVL+lc9qr49cdnYMfSgt/zZrRTS78+NTSuROFttfK5bJb0TVUXfyVel/3mlWhgzAOSBX6gXbetsDo5HczxZ0kAvhMmpcu2FwMPvDwkFrRGlLFzGa2rT5V8vMTqOzpcICBAFAprrHR338+zShL0tKzb3QyZcf+QkNNLqqDi6ax/MbdYNX+I1QCAenS7yhUUoRNp7j9L4h1PSQOupHOUdfhKoudmKcqkgc1pdf4UFXXglzn0He55Ga3TJMfCL+fNm4Fxtg76KUmiVitKfWbNeXRfZA4TBJnuQC53IzqJ3IjzTUwpP56079cNlHQ4Ixe6U4A7k5/MaoVftaoQoGwcSx9ow84C+FnhofJNj2MKXyvbU8YO4Bdc/g61jitxGLuVESTKejoUH3pA2dNm90BjohjcmlMO/sD/rRGs/wYKcJ/mwinhpN95eGGNFADL0zuj9DnDayr7rPbXvp2NtdIs/8Kb3At3S7s4JvnEI++jsXOmH 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 |
Make the kernel preemptible
|
expand
|
diff --git a/kernel/task_work.c b/kernel/task_work.c index 95a7e1b7f1da..6a891465c8e1 100644 --- a/kernel/task_work.c +++ b/kernel/task_work.c @@ -179,7 +179,6 @@ void task_work_run(void) next = work->next; work->func(work); work = next; - cond_resched(); } while (work); } }
The cond_resched() call was added in commit f341861fb0b7 ("task_work: add a scheduling point in task_work_run()") because of softlockups when processes with a large number of open sockets would exit. Given the always-on PREEMPTION, we should be able to remove it without much concern. However, task_work_run() does get called from some "interesting" places: one of them being the exit_to_user_loop() itself. That means that if TIF_NEED_RESCHED (or TIF_NEED_RESCHED_LAZY) were to be set once we were in a potentially long running task_work_run() all, then we would ignore the need-resched flags and there would be no call to schedule(). However, in that case, the next timer tick should cause rescheduling in irqentry_exit_cond_resched(), since then the TIF_NEED_RESCHED flag (even if the original flag were TIF_NEED_RESCHED_LAZY the tick would upgrade that.) Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- kernel/task_work.c | 1 - 1 file changed, 1 deletion(-)