Message ID | 20231107230822.371443-19-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 42B82C4332F for <linux-mm@archiver.kernel.org>; Tue, 7 Nov 2023 23:10:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 83E444401AA; Tue, 7 Nov 2023 18:09:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C452440186; Tue, 7 Nov 2023 18:09:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52AAF4401AA; Tue, 7 Nov 2023 18:09:51 -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 33758440186 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 18:09:51 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1A9BD160116 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:09:51 +0000 (UTC) X-FDA: 81432702582.04.F7EBD67 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf07.hostedemail.com (Postfix) with ESMTP id C6BA440014 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:09:47 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=MfUi3IqB; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sTK/dO8K"; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf07.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699398587; 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=c5yhecXpPDSuI0GmvS2MfP/t3MkFkdYdazz4/Wa0kwY=; b=s6YlLkSxMQcR98uwbok8kXm1sUSOLkuUK8V0F/W6t0xywRuQsAkHcxzx9Yi2e9EA6lyngP YmctS0eHZ+ErZLtFgamheD0RiOKgrZP4NyB4wCUQKmNRYzI6zLhywubPlHKp659bXgo0wY 6feg0zRorpgEtNPzAp4OyyjBzf1y/0Y= ARC-Authentication-Results: i=2; imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=MfUi3IqB; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="sTK/dO8K"; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf07.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-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699398587; a=rsa-sha256; cv=pass; b=f7eqsVSGuyUHb/jWHafmjCZ6ggGOwvLQJzVjVCimsmqarbh2RXdebR98/Uzy7dpSKN7kjy X5YqQsA3U4mJCdSEvV41DHdLWaUcoSD9zK5A+TV8cSPT/jI9gw2m+C1nPoqBexij+Ymk0B vFnBl06lV6f/YVdHOd77IgxYyIj0O68= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJw4Z004992; Tue, 7 Nov 2023 23:09:30 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=c5yhecXpPDSuI0GmvS2MfP/t3MkFkdYdazz4/Wa0kwY=; b=MfUi3IqBxui6sIP6wN4tJ399EWlkfEJW5L9jp4Ak2WF//zB23mMfuUW3Xg3TfSO8NGFt Bwm15k7koLp3vpFef98nv5DAfZBWHdaGBIkuNaKwKwtWOXeCzkS4s5rVB37lxjU4kEBG JzSHreLlehmTdR1gVNQURhBbcPEEwAFVZHB5IGNWHaRFZea9kHfbOj/SJbCBufjq0ano hU5ha6nbS4hMTSn+YiNExk7An/l782GTsMRbyaaBrcFzBqfiDD47IwVUd3CKN313+Kwr JtKXdX0nFTkfZqRFdoYsFUZVwznh0ZvV0JLmKA+uq3kqP0Vh0UKTLK3n0Nck+v6IMzhu lw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w22g6be-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:09:30 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7N2B2B000412; Tue, 7 Nov 2023 23:09:30 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1vcbxd-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:09:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nuHz+tCZGY5QR5s1YdhEgdpxiVyskdiXCwKSvkKyZqrqGQT8t+wv9E5j6dXqD+wAxhKtKDzhKnfNz9nG9SF/VlkgD5zgmHRmOLfLYOFZwUlBIQyP6cvaHY3cQ/IVqrLe29FJigNfG3vYsb3kIytONERCbviAhLRfRxM5u3UpfDvrfWtQkZHCatJK22ovUXGS3Kp3fXbwIqeOH+ceRJFiqHbRNRrdZYOYGkVhVi6qazPb7Ad+bKl5U74rC8f+HZued6Ajebq94nY3fk/26+CS2cFBMIHe4vrCe3qJKdguDKlfdxHCMupT3Xe1X8Ukp/5eFQ+MToZ+nOIDtlrRH4K77w== 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=c5yhecXpPDSuI0GmvS2MfP/t3MkFkdYdazz4/Wa0kwY=; b=EhGDwBMkkgOO6cA3Hi6RhZE6EDxw1Lwlb1PymkvILOOj0Bnlmu8LLRzLf69q65NxXh3qTbvlAjqmIK2vWBdgVC292jHZ7cdRjMmZ3yqzWuITqKgKDMsj4euFE1dkEqp6iHjTSNUWc8AcnExGECA8VqnBAIlZOiXzBAoY+esR6sqw0K6aDCw33F69ZsVcHjeog0il1lcAJYYWM4QvONDJrigXALXpb+OjqfrPJ9anv4Jp0ArBfdEMGAoLJEpLZXyGpztjiCtkCPTGQanmRxBzxIVGeo2lZkO17v8Tl+Df8Chu0NSUoMhycB0Q/VMLEqPiod7OaPCik3ll2olXb8vIQQ== 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=c5yhecXpPDSuI0GmvS2MfP/t3MkFkdYdazz4/Wa0kwY=; b=sTK/dO8K1F6YSpxEGLNDxbNmpJbkDsBqM/EJjRbsNhp9IzOAWCfV0QXkmOOzqohkNtOVil9nmfErVQGp/FncUZFprTe/EgIt8MqZQyJaCsco/EBMgtYXQQyWXK91+rPsjQAIpdrRAg5yerETRcHDv+2R0e6zTkoD2AHmlJ754kY= Received: from DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) by IA1PR10MB7261.namprd10.prod.outlook.com (2603:10b6:208:3f6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 23:09:26 +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:09:26 +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>, Stefano Stabellini <sstabellini@kernel.org>, Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>, Paolo Bonzini <pbonzini@redhat.com> Subject: [RFC PATCH 75/86] treewide: virt: remove cond_resched() Date: Tue, 7 Nov 2023 15:08:11 -0800 Message-Id: <20231107230822.371443-19-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: MW4PR03CA0164.namprd03.prod.outlook.com (2603:10b6:303:8d::19) To DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM8PR10MB5416:EE_|IA1PR10MB7261:EE_ X-MS-Office365-Filtering-Correlation-Id: b0035c91-4d51-4495-c757-08dbdfe69687 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9Gp0USXX6rAwsANGV7f4z2LUsKTSCR7PkxiO8PHp3Y41gQ4IfSeXv6i23ihn4oc+jY8ysY4rtP041U8SdyEbTtyLis7uY5teUsap+1uDfhXH0VTjsKgxg4/mitIecv/ooqPapK2M+QtETu/Kr/PR+R6CG5JEb81EgGnIyci9VAYf5idCFyTQxxKDF0ELVoTuvVWjrHtkrina1H8F1HH5PkDIhdQ/Zq7y2MCFJk/IwaKYHa4exoSZ+MtbuMFMIRvxTv9PyQODeyPCfdFCQRpsjcgGX0jFxfYeAeDiNVMIaE13eLVRra0FuELQlHoVFGpITohkzgGuFO+8lk/EjZ6CE+M2o8t6XpYsQYKcbM8f92UBAToErh3yfqAjl7EPdZHkzc0yNhKpfjNyykKBIdSeEfAHXoKFkhsiJu9LCE1Ui66GtmUqxx0ClmhQQKmoFwz9YxzT/DLFh1YgZrQiVsyMt6C5gCftqeXTypV0s/BHg8y8hqihAfZvvTUtzZntSzLFgkCS/Pw2lryjWSCqBAzfVWPHZ518+7aWoY3aRMThhtU= 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)(39860400002)(346002)(376002)(136003)(396003)(366004)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(66899024)(6506007)(478600001)(6512007)(2616005)(6486002)(966005)(6666004)(7406005)(36756003)(103116003)(38100700002)(86362001)(1076003)(41300700001)(7416002)(5660300002)(316002)(66556008)(66476007)(83380400001)(2906002)(54906003)(26005)(66946007)(6916009)(8676002)(4326008)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JpLVvgsv87KNLBxjAxcW7WucJ2Isc4d53YiKsBfXLcADM47ZU5SDeZVHvAvc2CJx19Hsm1v8UupSENS7Ig34mycCL0ksScBfftZPTwM8+QtJ4UwuPGBYc9kU6ZhixjeXRwnF59LHx2gc7GiZwkO3hniyM5UHiOhFyRWlUbw4DTRntYlUO+Ba2pWoVyfh3yxaH4008nvPah1K9EJ/hyN23YdUiu7dIBjjClyOuzfi4zlri2ip161i08N6S6kiscOgkdkptUqZudByuOngj22tY25hqXFzFzDi4Ra9RWnD+zd9R1tiKJvf4eO8CddE0ISYb/Zf5R3okdAEHKAbnGX4vPbTCPF9Jruf9Ovc2lRLtZWnwb2goUKkYJAU0k4iP2IvjN4GESleQ4cVTSsXraytZK/L3FKLW2bof8Oy8ijKW8OYfJt3pjZemMyTiY7cWTJHUA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x5tRgFXmLFy4Q6y89nbA3QSUYnSF18FiHxGyNY8od2ZWjl9T8eJVd9ch/M8mx7OumEf+bX7Ou7fn0/8y98z0HLs1TdMoS0A== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: uJDoScoed39OqTYC6IDD1N1p0T7b2iDBtv00YxN4sBkKxH8tUjVGhW/u4+B05SnIxCSHek81URCKRpDEmU0eNKbOC6gkIzAYbU1/n0F+bncchMgm232An8UwtjJukjdP0xMUyVn2t+U3FRj3hdq2aCM3mPtZq7zvFpFGi+WTAIhhR1tEJBXMUHHAOJnQxcVYfFaeq6WS+r+LnEq/oac3bshufHRGclQRkP4mNHEUJnwyDegBqaTjxRlA+Mf4+uiRUhuwbddBah1B3SUInHLhrn0ApgKafBwXn1njdAPDMIePlrVHq/4aUYbWjcvkckUkuAIQxBHqDXD9/gfwEQjdyy3l5A7SVcApRUFpSWStC2Lbzg6628eDNumgSxLx453hT6245hm06oNRQquggbMiFg5YxlsfAaZLR5KZ6LKiWfnUWLsaklxEH3qkOO2LOwohy09zbBeX+V55eVCn6ghj6Yy1c53abCKwb0GCcFndsvB/drgrG4ZodIMh/UVLfoZY99tC1QE7z3iWjGvGftnw6n+oPDr8+NRhN7pm1410X+FIiuULN0FjAaPQ+aASktODnjo9blojbXcACK6kocCiISnXpFQCJRDPGcEKqQZDMi675SoBWpdppcQJwjysAWawK8zbqtcytLy/7iE6PVwUqverhZm+PrDRm6xzgKwkrsqFwYe9sE6gDc29dEOA8Qh2A/ao9/1Z4OKqFUmz5M6ohN3wq1uZJgF8LRzJ/MAqP4qzSTlQJmFomm47jGDMu9KvwQl7vYuySMvtSEIOFVakSFnmSJoGzjw09iE3Pl8Zwkb/yFjQH0eeTvXYQQkiEdkJngH6Mftdwf2CdehPZdYKMNpMH8wzRz+NcWs+SRD57LLEmByOpctR+rr2ne9h6rSiczp3Ywxmh/F6YeMnvAXl94A/mb+xEFXrc9JWOYuSUq/k4ov38M83o2bnStWy4Ex0zSZgyS3/qwP9/6npMjw/wpHfRczOusdZ+nYgRA9SqT8V0RlZ2i1rWzCuWUzmYxNMpeQhwROj6iXOJ8y/eiyxCy5DJNgU+6xt8UdQVy3DRl4wn4JQW3OW8st4/jGPgwUkwvaDS4eXB2SJCpgtgEolTFsNFl69bCnlA6dU4wOjvo2OOMaOyT3K1XFAYwqUOv6HaxXfeln3/38T/ZPou7yOZ4xlOHzxnDeDGG9EjVrrwNVORWqpXyQ/1S1bC2fx1uG4aNOzxLYU1LkWe0U5kOcXUR6PtdmM6hMySjT4ipryYSd5QmEMehrpX9T9WqHzHX2ndgMsw4arix8DjEgWnTsYI2+NNNRSjylRHXVsp/gnRs/GI/MjSGR1DprtEms5Fkj3z+lTPKWMnZLn9h9sEzTa5K/SNOdN35AvndRpyNFEl1byYbERiUuio43MZsVtAU7Ph8MMrB+ybDL6JdPDe+Wkob4Cjija/6e85vGRIi7+U8iVd2CGwHbhMVRnyodP7YpNLTKuD25NDt2aJ7idye8YJQaC9htn4aNyA1t+1dnmwqVS8i3rwCQVoMeStiC7lFi7jR6wJBj6c7vp1sq/Jye/9ka7feA0jS/RCrBX/cj3Kpc= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0035c91-4d51-4495-c757-08dbdfe69687 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:09:26.5940 (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: aGbLZ55H3FGzaF1wV6tX4nfe9V8uYEO9LCl3l/WjrBN/Rs7HqNx+eXpi2nk9HvJJaDylGsYIHPDphzL48JqvvgKPBuPVhFgmhYlDsNLfqEg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7261 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 malwarescore=0 suspectscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070189 X-Proofpoint-ORIG-GUID: Ii4sVl0De7nOUzwkvOeXic92JPyFZVsO X-Proofpoint-GUID: Ii4sVl0De7nOUzwkvOeXic92JPyFZVsO X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: C6BA440014 X-Stat-Signature: memcfzbhcxq3j8d1m5g4tmunmabepfas X-HE-Tag: 1699398587-441709 X-HE-Meta: U2FsdGVkX1+Flti/N4Trtk/cQXhccz7fs71ZhD3DhCRUIgNUvjA6lAIqD1LF2p4YZBmkHtCIp6yS1v8r7JYgyCYMU7HARWa5oijqdaCn0rIjm+TCr3bgThZcbqHVRk3QaO7Lq/PiHNhxpAd1y2VWT/g20YWNVEQFf3JMJS2vbPsPrA5zTCs+lSzn+pKRp8Mi5/iJ3v7gE2nD5HlzTOnseyLNlXNW9FZOsEcJfnZZv1f7IDt+U5a8gB2L7nuplZvlHHcHoDpFsNyS8VZgQSbKMiCbatJtXmLZOh249W9jInC65AUlUWT/Ds0MRnuT+RLeEWxYXqR1+C7gSZILzr/xfyBlW7TNPMEWOTMShTYyqdpZo5+C7DpswKD5oO15RaLkPUSLB/mIc7ZtZRr4nZiRrO3tQiDFKnnkn+edaf3zHarL3sHtqlzQwJ/HLhxh2rSt6KHmZca56PwMqWkzC0aMjqRMZ94DQdUEm+VJzNTbwb+bCjBWwGyzjktNIBf1FSC/HUXK0o9cN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vumW/DWKOAD8csXtO2/v2SRX5Q1gpFj53ZmuSr+PnFz45Q5Fuk66AnkJfumADdCylqFuX+ 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/drivers/xen/balloon.c b/drivers/xen/balloon.c index 586a1673459e..a57e516b36f5 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -550,8 +550,6 @@ static int balloon_thread(void *unused) update_schedule(); mutex_unlock(&balloon_mutex); - - cond_resched(); } } diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 61faea1f0663..cbf74a2b6a06 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -974,8 +974,6 @@ static long gntdev_ioctl_grant_copy(struct gntdev_priv *priv, void __user *u) ret = gntdev_grant_copy_seg(&batch, &seg, ©.segments[i].status); if (ret < 0) goto out; - - cond_resched(); } if (batch.nr_ops) ret = gntdev_copy(&batch); diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 8b77e4c06e43..1ab88ba93166 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c @@ -814,9 +814,6 @@ static int scsiback_do_cmd_fn(struct vscsibk_info *info, transport_generic_free_cmd(&pending_req->se_cmd, 0); break; } - - /* Yield point for this unbounded loop. */ - cond_resched(); } gnttab_page_cache_shrink(&info->free_pages, scsiback_max_buffer_pages); @@ -831,8 +828,12 @@ static irqreturn_t scsiback_irq_fn(int irq, void *dev_id) int rc; unsigned int eoi_flags = XEN_EOI_FLAG_SPURIOUS; + /* + * Process cmds in a tight loop. The scheduler can preempt when + * it needs to. + */ while ((rc = scsiback_do_cmd_fn(info, &eoi_flags)) > 0) - cond_resched(); + ; /* In case of a ring error we keep the event channel masked. */ if (!rc) diff --git a/virt/kvm/pfncache.c b/virt/kvm/pfncache.c index 2d6aba677830..cc757d5b4acc 100644 --- a/virt/kvm/pfncache.c +++ b/virt/kvm/pfncache.c @@ -178,8 +178,6 @@ static kvm_pfn_t hva_to_pfn_retry(struct gfn_to_pfn_cache *gpc) gpc_unmap_khva(new_pfn, new_khva); kvm_release_pfn_clean(new_pfn); - - cond_resched(); } /* We always request a writeable mapping */
There are broadly three sets of uses of cond_resched(): 1. Calls to cond_resched() out of the goodness of our heart, otherwise known as avoiding lockup splats. 2. Open coded variants of cond_resched_lock() which call cond_resched(). 3. Retry or error handling loops, where cond_resched() is used as a quick alternative to spinning in a tight-loop. When running under a full preemption model, the cond_resched() reduces to a NOP (not even a barrier) so removing it obviously cannot matter. But considering only voluntary preemption models (for say code that has been mostly tested under those), for set-1 and set-2 the scheduler can now preempt kernel tasks running beyond their time quanta anywhere they are preemptible() [1]. Which removes any need for these explicitly placed scheduling points. The cond_resched() calls in set-3 are a little more difficult. To start with, given it's NOP character under full preemption, it never actually saved us from a tight loop. With voluntary preemption, it's not a NOP, but it might as well be -- for most workloads the scheduler does not have an interminable supply of runnable tasks on the runqueue. So, cond_resched() is useful to not get softlockup splats, but not terribly good for error handling. Ideally, these should be replaced with some kind of timed or event wait. For now we use cond_resched_stall(), which tries to schedule if possible, and executes a cpu_relax() if not. All the cond_resched() calls here are from set-1. Remove them. [1] https://lore.kernel.org/lkml/20231107215742.363031-1-ankur.a.arora@oracle.com/ Cc: Juergen Gross <jgross@suse.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- drivers/xen/balloon.c | 2 -- drivers/xen/gntdev.c | 2 -- drivers/xen/xen-scsiback.c | 9 +++++---- virt/kvm/pfncache.c | 2 -- 4 files changed, 5 insertions(+), 10 deletions(-)