Message ID | 20240820175417.2782532-1-Liam.Howlett@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 970D9C3DA4A for <linux-mm@archiver.kernel.org>; Tue, 20 Aug 2024 17:54:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B2F36B0083; Tue, 20 Aug 2024 13:54:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 261E96B0085; Tue, 20 Aug 2024 13:54:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B4F06B0088; Tue, 20 Aug 2024 13:54:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id E15E26B0083 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 13:54:39 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 700761203C9 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 17:54:39 +0000 (UTC) X-FDA: 82473373878.23.FA6CA4D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf06.hostedemail.com (Postfix) with ESMTP id 400CA180010 for <linux-mm@kvack.org>; Tue, 20 Aug 2024 17:54:36 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cokcrV9I; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qqQPES6h; spf=pass (imf06.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=oracle.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=1724176437; 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: references:dkim-signature; bh=8FbFz8aoGuAKirJo7+mWEn1vEqisuZjzF+CwIgG5VUE=; b=hfz9fxER7qwJ3vmMlRkYcOs07bWGfT6S9vmpwYDlqyzOvgsYU1RrvyaqIcsQI0RU02xrJC FwBumju23WIlgRNaaHwMYOsqprKkqy/lLWAYa0cnVdhT6YJ2TmUwVRAus5EXlRmoEwAkNh VPRbEizWUqRmMTMngHtbEZPGOWpiHSU= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cokcrV9I; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qqQPES6h; spf=pass (imf06.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1724176437; a=rsa-sha256; cv=pass; b=d2IsjHqT46SXAOkfCDqTeOVmb/RnLb/il3AkTu4qgPWl1vSfOgOJQ+OFFTj4upnfe8fKHA YEaUwd2BAtrA95HSGrWMsPjIOyB0oEBJtaLggxSSTxgK0EJIhnAt2HREU5seqiXidT6WaH G7tF21BRZ6gb5cfkaGru7N0uiowlUH4= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47KHeTDY003054; Tue, 20 Aug 2024 17:54:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=corp-2023-11-20; bh=8FbFz8aoGuAKir Jo7+mWEn1vEqisuZjzF+CwIgG5VUE=; b=cokcrV9IiRrot7sTnXSMehn9jK9V4O eNG+oUYBEu74pbxMC3h+Rx7scWQKdj6/xuYNZ6iW7TsU1avzjDNYkva8G8PnDD+U hGaAuhfAoJej4t0W0CPPapmfCz3wcJ2MKPYWkUTeMbylgAQPjoWqzDLIxyKx4L7m /HYWlguwzi+HFL4eGkoyj0IMcNDWyO4XtBW0ItVIZE8DEU2RFLGHTMvUMRD6rmBK Nc/prwz18540HnhRU2Lf/ksCu5Jh6Y+fhPbyhaBG2n+c68GBCo30+koJo5xiHOtw QkNgzvE+Rk5c9z/qTjvCffGOx5kGSuTZgqNhVRuc6ZjytKl7c6lfOCLw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 414yrj00w1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 17:54:34 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47KHJPFw016982; Tue, 20 Aug 2024 17:54:33 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2041.outbound.protection.outlook.com [104.47.56.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 414x6gw9wf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Aug 2024 17:54:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EUYVtmiGlgi7MNATfwOkvy7CauJHCWXXYN8DIj5t1hOolysooMMyvtBhL4n+dYTGdDJobfHjrAHUVe1Llj43wAgPjVO4ch1EBVo5ablZWICZs0soZlpg84AHLwSERH2n5CaHyPVZpEnGWqEJtoZQZAAuI0p+wa8ojk6j4zZIOeqV2WNtKqES0kfRjn1x1Awtb6hv/PkCyyZ3CxzuC+yoj3E3T9w9zlp5snHteVq4kmmMtQwvb/0ziOIDGvnGhfT+/gY38rZ7FEcA/u3Rfox6KXDUsSY8GNr1zIOCLpksrgo6UJMci8cDK6gicLOmDR46hXTx2PgsdPfd0REMw3JVAg== 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=8FbFz8aoGuAKirJo7+mWEn1vEqisuZjzF+CwIgG5VUE=; b=b6FvbPOJfQHS5SlETUnoGLLDAzbyJImFbrzC7W4/CXPvriIx8tGIqOxZsZb3F44ooRx6vaxOg+GFK8EsageNWNHwp1XilEHU7v7g/oRJUX3HR+edZSivCY7njzL1cVgNCbudz2j9509Vhc2lw4UriRE/LngpzUpXHBVWMOXBxMAMzvMeByD37rksnbXJQnw6OAr6uTC6Rtgp+6jpoUvGkc0elRj7daPKHvG0WLQbh7eZ6DBYLSJz9bYeg2gQtpPclDTAuuf9SAtHFqMkM++3EUiH7lcNN2ZP2tfka0c685kwN24ErF1Dt6a1rT1kNc3Q45rzrq6hF0CX3rpY0QLBuw== 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=8FbFz8aoGuAKirJo7+mWEn1vEqisuZjzF+CwIgG5VUE=; b=qqQPES6hPlg7FMLSHSlksHCeiie4/tY+0P6Eq7G77rCieTLyu8Y6OPlz9Ee4oGASZrtH4FS2iTaIUCHYCfEJhukXcCl1Kln29Nov6WgXWAJjxxa5DCmpswAvdIRmoB2vsLApZsVHue5gL/pddQiEJ2HGfH6WwjcVVf0+ZHvq79c= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by DS7PR10MB7279.namprd10.prod.outlook.com (2603:10b6:8:e2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.17; Tue, 20 Aug 2024 17:54:31 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%3]) with mapi id 15.20.7897.010; Tue, 20 Aug 2024 17:54:31 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" <Liam.Howlett@Oracle.com>, syzbot+036af2f0c7338a33b0cd@syzkaller.appspotmail.com Subject: [PATCH] maple_tree: Remove rcu_read_lock() from mt_validate() Date: Tue, 20 Aug 2024 13:54:17 -0400 Message-ID: <20240820175417.2782532-1-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.43.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT3PR01CA0039.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:82::16) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|DS7PR10MB7279:EE_ X-MS-Office365-Filtering-Correlation-Id: c9bc0cc5-c2d3-4601-91aa-08dcc1412476 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: g8uXUu7tLPmWrOEXX11xamMc28TFjmswjhMYGQH+5QtxF22/CBvEJvj1uR4YbOgLLe8th1I1EmkfWE0PzrXk7usCkINPyM5VjX6/KiGhTkQ4w+JpG2I9S/xNBpkS7CEeVbwHr/qy51F6ka+XUGNN4PdenT89MweN0iXAQ4hgn8EHX2DFP6j2jU2ChIAT73oPaJnek/DNKqejy6bxabnxoqdOn6TOv0unQcBjrAJ8nIcyIRUkoYCz6xlxwzaqY7H+3bh0e2ciosgoVX8We5vVe7JOtknjdNpnRcovWFlaY/ngkITRohjlPvCa9e5CYYL5Syxi+z8KnE20JgqN1qnDmkTNiytrJjH2ysyOv1HoYoXb6rinG2WzMK//wbNF/iKIjx9E3jrfQQKYoAnpd7eaLSc2bzGiTc9uz4D+m1kRaItHb9EyK6EDm9Y0S2Ozylj2yJaz2VKxmfUt+OPydioLNDewC166c5gAB61/MRIly+yiUbBw5j+gMl0EE+rrk2P2YJPHwbzHBMS08TETzQ53jfXCZqMQGkUXw0XBQUDNTy63b1xtAH4SrQTglbCOpI5YAhOSm9vcp1pxV18iTnXdlKDm6yXxRtqdooVKGmGThsliyiHEBQYoQFm/5/q58IyfDi986EU8jWAKPAEGxuQ4bH/ILgxWhaKSbSTUDWnQ+TTtCliVq+JF4rPvrjgsjpIf5MlPbtuF2KkEzs9D8ddTdrPi0uAIN3TsEas7FApQyuCI1ztT6WHWu+REUwR2griUa0kAuGGmTZ0c5sPaVSO1SvGSkEvYzh1eWGUKv0yhJGamRAUIUgNUsAaZIEArGc7SEuMip9xIq/eYnTzI5FsIHfiHllUojaG6P7zcqa1ZpAEFM5cYwlFwr4/6dEywTmk88TUEEph15GGaqGgcZb5RmViJ0ulo2VJHpwhXH+/HK/4XQelmHc+SZ/+SFiUSxMG1whbox6RBIq44rYP7vwuJrYMHccN6Nth8pwPkZlW3XJb8g63z4mO8SyzRNMoM60kSUAjc+tX+XeDt+6k9yWP7VrTUm9keGKgYIWSZxxJ5GPIbn0z8jmXNlKyA1a4l+34FKtWAqZPK0AcJyrYs1CPP3x2Rd7LLRxOqCOG8/ypmJ0sxEVnlw9N7SzNcQh0f+DOCLv6NthvY7DomHlYF6hXYvWZDZH930ncNBDmWqPXU2TI4oPhNqOF1amKNIpB4UaskaNWsy+IwVBFn0/z/GFRxveDF7gR0DPzeXtKwUcDX6OvWcNG7Hrr7ZeJt4VhbGmKfXbG6cnVY7TVMkFLDz+HxIKYBMw6sy5bEcewrVP/DJUA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB7933.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JLvjkVs0UNjfeQArZHywyB7xDbkW/4niEzYJg0ch8SfPBusVL66APrcD6IbFdXPVvAvca00OB+++Boo5qCqTdansD338tEyCHftlGj3xwwnwRqDVtVNUcViBGvijsK5E72Ub3VJ669ZxcRs9IhJcjFt/SPNuLHZIBOTqKl7LVDspvKKDZN7kgcyL5exzu5aty60IYECQB/a25WOZRD32iwf0PF/iFfgFWhkbngLpyxdguTzuQw3S7caqnzmy77iU6OmOGMFgXyvBqBNed7aK5RoJ/8XQG32JGvWRNnlviRuCvs6cY25bIkLYayNhb+vXr0CDHJ1f/c0tmZbAErJUv9TYSdDgVt1zWoszOP2dJA7zz2GKBznbYZEqAk8Bi209jjyVCcOdhtNQNZKjpiBsASmyb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Phoohx6DvwvQz7pfqE1AX+uLbaA23947BLTRjH0bMvjDgrpfnv+xufMxlw71zm6amhxSASigolcspdKT87ROXhhfDWlJl6MF8kgCr3hBdkUPSK/ X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: IsJAg3lUYrHR2qdzpY1PlRvk1LrCiM+WyAP1/YupElwDXNhuKA2R3fnqVpA0ItF0tsmhg69fD7EcQ0iT4Utbl3Oeey4IlOvVWAk963urw1biYZRDq1siU2tnl+iTokEirEYCVqilxzUdVgdGg7xuIxJh0aYWTUEONUPHjdrSILCdgMdpVErL0rzHCD0aRjf09I0in66XUVx4lXpiXl7BQ5z2AOktoQlbqOu5GI5YIb1SkIDOooXGziT8FYt8vD0urWlCk9u4S2Q7RUo5fIdpf3jC+IOPnqKhEujnh0LvbF0AMUNStcSvX8EOVMzeVZIHdWlnWfM1G0HDJrvPSuTcnipzEnQVn7B5t55Elyot+FWQFqrqwtPq9hKak924Bid8Sq/nPP7j+z0A1Fj2QXqpLtNRZx59KModQ2b/COKkxoTYr/m7wy3Om9AjW7obM6Tv9P3EyatGWRxJLfuaKGNDU4BbUjE7iDG0+pDVFMo+GiHZVv/Q6Xxy7IvhiZ8VVnA4SJETGN4GRLp4+LnSWN09xWRy2hRaPWgY0mjtUvvoz6G3nVZzquws9m8vUHY4+ux7KCvJUrq+AQqaTYVI/lEPKh25046VjmTHX+e2FKcClVY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9bc0cc5-c2d3-4601-91aa-08dcc1412476 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 17:54:30.9801 (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: jkKKEpi/eG0cWv3BKx2N0RllWmA3pBg59KTIuHPxLXCTvqcFaMgElUECmR7S4tPqJY/dpj4EVWKyxN2XMUiyAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7279 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-20_13,2024-08-19_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408200133 X-Proofpoint-ORIG-GUID: mkAb-RM6fACaOMreBZdvj3fNZUBXC9JG X-Proofpoint-GUID: mkAb-RM6fACaOMreBZdvj3fNZUBXC9JG X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 400CA180010 X-Stat-Signature: ceq1jeet33qe11kad41wyfpgu13hodqr X-HE-Tag: 1724176476-879630 X-HE-Meta: U2FsdGVkX1/4WzBbxdcGXXyyotBGOVCAgLsY4fG++Yc8NgFZhlYESEQnV62TB6fI/KSwKTcIvCoKttebujeJyEK5Ckva+9q4+nJ6SUncFaGuq03iP+tHagkZcss5XxB+lVqc8dkWV7NAt+AVdTANbB5lytz6gnNDCvAaD4cvwGsoG95DOYH9jEwDzYyzeHYgVim/LB3JbbM4R7GkKCdZ4VOVfuQhZEJLyhS61tgAisZQCKXyR0P6lSe0HjiF4DbXzwVZO2r4wnL1zz3TR1m+x7aty5CWUI0Tm23S3dzFPXq9Dqjql9X9qM3SX3g4O8jDubqsBRJR7J0+1wn3tlEu43eU/qER4ogVOs8wmcxu79TDwUByt948GBeHrtoSVxZ3v70L0PAu91Xwn0D1fMuy3VKFuhgDRZ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AtpwnMgtd2UyKzPAJ6K3qwAlWd5CT0M9XM9dOd5pyQtXNZx6AnHrpUMQ+xEhf4vym1ciMtun5qncN89uh+N/cG0RPLIcY2+XOM0Vr+/Wet/0n6IXk2yXu2Q1bG4x/DFDjH2tus7uKurQRGgKe5pTJJMOtgtIj6g7KCJkjOZ7jfEexuMTQrFMOaY00Nj+Xe6tqekUz4lyUco3Y80BPIk98hPDi9Zcaz+tEzdN5n9HkqF5Rf4ANZj9SzwfD4JZw== 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 |
maple_tree: Remove rcu_read_lock() from mt_validate()
|
expand
|
On Wed, Aug 21, 2024 at 06:38:45AM +0800, Hillf Danton wrote: Hillf, your email client is STILL broken. It's using the same message ID as the email it's replying to, which causes all kinds of problems. Please fix it or change to a different client. > On Tue, 20 Aug 2024 13:54:17 -0400 "Liam R. Howlett" <Liam.Howlett@Oracle.com> > > > > The write lock should be held when validating the tree to avoid updates > > racing with checks. Holding the rcu read lock during a large tree > > validation may also cause a prolonged rcu read window. > > > >From the rcu stall's view, holding spin lock plays the same role of rcu > read lock, so what are you fixing by simply dropping rcu read lock? He's not holding a spinlock, he's holding a mutex, which has very different properties.
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 755ba8b18e14..fe1b01b29201 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -7588,14 +7588,14 @@ static void mt_validate_nulls(struct maple_tree *mt) * 2. The gap is correctly set in the parents */ void mt_validate(struct maple_tree *mt) + __must_hold(mas->tree->ma_lock) { unsigned char end; MA_STATE(mas, mt, 0, 0); - rcu_read_lock(); mas_start(&mas); if (!mas_is_active(&mas)) - goto done; + return; while (!mte_is_leaf(mas.node)) mas_descend(&mas); @@ -7616,9 +7616,6 @@ void mt_validate(struct maple_tree *mt) mas_dfs_postorder(&mas, ULONG_MAX); } mt_validate_nulls(mt); -done: - rcu_read_unlock(); - } EXPORT_SYMBOL_GPL(mt_validate);