Message ID | 20230804165951.2661157-1-Liam.Howlett@oracle.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp73183vqr; Fri, 4 Aug 2023 13:05:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFl617sjE7cqyFsm1ikN0IOyzGqHnHAmvafZxH7RZvDX4LfPqqj+92ojCUwyJldKTj20LXD X-Received: by 2002:a17:906:3193:b0:99b:c2b2:e4ac with SMTP id 19-20020a170906319300b0099bc2b2e4acmr2136742ejy.33.1691179549517; Fri, 04 Aug 2023 13:05:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691179549; cv=pass; d=google.com; s=arc-20160816; b=fcMT64LgX7uJcX+Dr3DUD9JmBh4QWPYqcsyfGsKhuxPSCj6LyqhP0BS6oc237Q27LF UTLsGC96vFVZNIvNAaTmoL8/kwOF83iGMGb+PeCoPC1461lJJ5mdJWU7VeKo4UPC8MWz 7psZsIuVcKQUgCELb3QT4W9/ClaCf6VnWPusm+oY4NKGgqpRWyTytOcViDaMSdchfRLs 92Bjsp+uCyKrZ4y5hJ7DBKeNUHyClXlHHCUTQR18WGEcdYQMUSMu/AahCvolT7RfKbwv XPdy+qQ4Ab7jXFybIsgxNQyhL2HG22vPlwGdeWDypyEGy4bPyIVAy/U6ZeN13xzBKzxu QknA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=xGAFUHwaznQZZ9awdwm5ZiuBMO1MMOs1VI9nLTz/3VQ=; fh=Jx4gVBvid7KgfLKRR8tZHAZdyc3avutoYh6+kI1EIPo=; b=q6+sbnZ0jbi+DxyAuZ33jfl5efAyRvu/kK8C5m8bp2AK7d5R6WXKy0tYGFdPvVHjzM /XAZL8D3xFE79CJPio3Czmp0JQeRe460KAduQxKhZaeA1+INtGVw9u85GZnTjoH6AY8y yYNNfYCJsZex4A/gTN1pSq6Li0rru2D15CY/0y5/SYGGhxbOaxK3dinux+D/t6g0aY13 UoCYtqs/Op2nvXK3nwl4iq6FoE/fj1ZYbgFZxp41kT4JmVf3gSfh088bdIALN2nUMHH1 iT+Qi+VMoTr2XyO5ZdqRZzJFyNBXMJifmrI/0+VsTk/ooQYThOBTWHbXg5YZRXTPGxhR kIuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=D8ocZhSo; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hbHD0vQQ; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w27-20020a170906385b00b0099bcbaa2430si1993932ejc.46.2023.08.04.13.05.26; Fri, 04 Aug 2023 13:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=D8ocZhSo; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hbHD0vQQ; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231453AbjHDRAg (ORCPT <rfc822;sukrut.bellary@gmail.com> + 99 others); Fri, 4 Aug 2023 13:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjHDRAc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Aug 2023 13:00:32 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BADE3C25 for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 10:00:31 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 374EiMF3030795; Fri, 4 Aug 2023 17:00:15 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-03-30; bh=xGAFUHwaznQZZ9awdwm5ZiuBMO1MMOs1VI9nLTz/3VQ=; b=D8ocZhSoPE5PbQZU5qFxn/P2iho5RxYNwU98HGX1IFj89DbhaVPOjhMlxJ/q1W/jFsGf P8p9rR78gSBWc5PaLZY9Kfenup8M3MRAtI6jZmko02Vv8Y9H/S582vi4d7L/CAHQpszN pasgmSVXq1Gbm/tnKglfoq0fQddnAEQZAelfAJKODl+3yJoOpK0+IdpwrKwXhn2CHlnI 7xUUXp49FtRAuWEhQMHXFia155xj0ttG51CebqllODbQjr3CBOPevmKn8ta/F08UXrFE M4+d7xA1oW7gRyAuUn61RubDs5BpLJp+kUKU0mFpjS+R8Lhcs4s45Q+N1FCAEv0XdI+W 3A== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s4uav47ky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Aug 2023 17:00:15 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 374FQvwA011630; Fri, 4 Aug 2023 17:00:14 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s8m2s3grb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Aug 2023 17:00:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BVv5WoPz7yLabu4/WJdlZvA+Dcqm8MIjZrONyvWr7Xa1uUvctDZEWCLDuKj05au8p8Dk8jj0fB0Cm0gd6W+kGd2PtsXGvbj4nBRVAlrOUu8+NW4lWTOAYsS5iP/cqU+foJ/q6d/tU2aWSon/nUdM4ShoPgs7kM5/CsKicLl84hJRYkZK+tOFKgq4kKBBcY5BcKGC6VJRrvFb8QX+hxjqkdwD3BmC7wcWygBpBxlgEG7bXdK9cXizprKwqj1BOPBwI+hKqJpZ+y6mV69w9QbVf1DQpAZcQ9akDaq5NIcKjUorQsQ/O+osiv4ifLAJcyw8pvBR5LldGhxmB7eRTCR/Xw== 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=xGAFUHwaznQZZ9awdwm5ZiuBMO1MMOs1VI9nLTz/3VQ=; b=cpwOTzu1HwTvp6v1FXWrpB/GnnIKapHdsH81bHeQw4H/90xsZwkmVCkTmFKectjqrfcfwNHjkLRuGzUBrFXXVN1oaOImUffYD3p8s6/baJ3fX8jIU4ofPyMTl6sEP8W8t+ZELI2zx7FQpGmG11RZ2F+8CEwinUWu5+rWPk55agxzPdwhJpHNyzwjMcf/NwQOKIUZWvqZLB7mo7MhPAzj5f7QupxOlejf1nimUHQUFPaRmacLmewDZg6syAD4rj8tRmscoJisGIbIu5w4jun5PKv8kcYQpa7Hom9jNnqyQzQEWMtSN4nuBmflYDXk/1vUOA1SN26i8ebBsVkDo2r1VQ== 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=xGAFUHwaznQZZ9awdwm5ZiuBMO1MMOs1VI9nLTz/3VQ=; b=hbHD0vQQPXenQxg9RabtN1Y0ZXTHLUcVxxuz+tADelLthKDPoO6ARcH6gV53nFRRLXHyddBGmPINs4FyNB8TB7/iqBwZ3G20nTqz/GD8rGYiUrGgHvsWkn0mQs23d7bIKHTyhJkCc9XnFl8Ejxfu/2OFtE7ytDSkyMUZCHwb99U= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by PH0PR10MB4469.namprd10.prod.outlook.com (2603:10b6:510:32::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.20; Fri, 4 Aug 2023 17:00:11 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::26d3:6f41:6415:8c35]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::26d3:6f41:6415:8c35%3]) with mapi id 15.20.6631.046; Fri, 4 Aug 2023 17:00:11 +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, "Paul E . McKenney" <paulmck@kernel.org>, Suren Baghdasaryan <surenb@google.com>, Matthew Wilcox <willy@infradead.org>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH 0/6] maple_tree: Change replacement strategy Date: Fri, 4 Aug 2023 12:59:45 -0400 Message-Id: <20230804165951.2661157-1-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0181.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:110::8) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|PH0PR10MB4469:EE_ X-MS-Office365-Filtering-Correlation-Id: 26ad192b-fcb6-41fa-21d1-08db950c43ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ewlb1nqXRZWI2dku8ZiPOuZi08gi4QoFbT4ub2V8FuYMHln5+d+YQKYfGaGCkpjKoZs3xRycElL7+X2vIRms9NnMgjP3m3zw+uphMgL3mGtuxbfQVONeUCWOIZENyBC2wkoTWzCrL51jPiGcVV25rAy00K0K3ZwsZXMrHT0EynMnWJIRLpdDyf52Qy6MHgja5Q64pSZe2OfX0xfAiphA3sAa2AXPz48kVzcZN/rqcbcb1Lzc6BdL2uoyo2d7GI5rNVw9NQn4ueyZ8fyhr8p9sumPY9s9QDIlQZAWY+518dzNzUz4B1tAOBkJrqgcnaZMU48icfEXSRiEOqzg69+JcomD4d++vcI1dZ1KClqPkfQ+kSEKvWgimRFK36HGWD/dw/ysO16yYF3vQn/ct/4PUz5bR1v6eP8eEvMMVe0GHsmv/NwCW8R34GluSIjaNSs2KZoN983qBJEIYT6AtzbS2uenx0LxW2yXnAxpjX290hjEO8OWdCUnTUByPTcWtKtSWgEE4bIBhKfVznZCSn+O20y24oeG52BjS2N8jSyTeqjV1eb0YV42r88aB4k0EFOv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(366004)(39860400002)(396003)(346002)(136003)(1800799003)(186006)(451199021)(41300700001)(8936002)(8676002)(83380400001)(26005)(6506007)(107886003)(86362001)(38100700002)(2616005)(1076003)(316002)(6666004)(4326008)(6512007)(6486002)(478600001)(54906003)(6916009)(36756003)(2906002)(66476007)(5660300002)(66946007)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JaCcmV9o+THzNz+ntnKaNuzcMuSEqJUNoL/PQyQwb5QUpBEGLyMSUZ3AJDrStrvOahIo+JSCBckX1kJAAd/BftS+M3MXbXhd/yKAG8v1u0OEOMF2iIEUQlhLPMaiIKgbfFBBFCIEOj5/mHGmfGVdus7Tv7cl/vXguHEs7Cen9GhoMGBSoJggdjZqephAhoXrD9weBlpLFFhjRGeC2eS8DHNTtCONueNaOIVNz1r5TocGq1qO1BtjJXvVe+p46UiC1pZ53+M+qShDq87Lit7xi9hbP57BF6yfvfMdQ2umtr0LnPfF/OOtv09SgwYNMBtXh4E4hSKRQSxcGw212HstNzFdA4mwWmXdldQoehKU60nQwdmUThgR5kI9cYBRcFY5sHndUqfYDEdlYEGLuSBrC1GWujwYlYuh8CbiB2fziN2OBg/YcailHehHHFnb3w0lLObJVKRlp3x5wW5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RjbGhTPwdnXDy6RiBjnrP1/iUDPbZ3aVrhkt4vUxwBfdOmY4X1Y7TqF9BNLYvxLRJJ9MXpCKBZtMfjxM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26ad192b-fcb6-41fa-21d1-08db950c43ea X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2023 17:00:11.6020 (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: kUDiJqTXq7p3htrgXC68BSWtSiMit6lI4oJlXtm3v9VR8YPrKI1vI2rjMDqd5xduWejea0A1bkdwse6q2/5rAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4469 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-04_16,2023-08-03_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308040151 X-Proofpoint-ORIG-GUID: RyiOzTUOroQO_GksT8kJsV_lbK1LpXN3 X-Proofpoint-GUID: RyiOzTUOroQO_GksT8kJsV_lbK1LpXN3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773330287321942247 X-GMAIL-MSGID: 1773330287321942247 |
Series |
maple_tree: Change replacement strategy
|
|
Message
Liam R. Howlett
Aug. 4, 2023, 4:59 p.m. UTC
The maple tree marks nodes dead as soon as they are going to be replaced. This could be problematic when used in the RCU context since the writer may be starved of CPU time by the readers. This patch set addresses the issue by switching the data replacement strategy to one that will only mark data as dead once the new data is available. This series changes the ordering of the node replacement so that the new data is live before the old data is marked 'dead'. When readers hit 'dead' nodes, they will restart from the top of the tree and end up in the new data. In more complex scenarios, the replacement strategy means a subtree is built and graphed into the tree leaving some nodes to point to the old parent. The view of tasks into the old data will either remain with the old data, or see the new data once the old data is marked 'dead'. Iterators will see the 'dead' node and restart on their own and switch to the new data. There is no risk of the reader seeing old data in these cases. The 'dead' subtree of data is then fully marked dead, but reused nodes will still point to the dead nodes until the parent pointer is updated. Walking up to a 'dead' node will cause a re-walk from the top of the tree and enter the new data area where old data is not reachable. Once the parent pointers are fully up to date in the active data, the 'dead' subtree is iterated to collect entirely 'dead' subtrees, and dead nodes (nodes that partially contained reused data). Liam R. Howlett (6): maple_tree: Add hex output to maple_arange64 dump maple_tree: Reorder replacement of nodes to avoid live lock maple_tree: introduce mas_put_in_tree() maple_tree: Introduce mas_tree_parent() definition maple_tree: Change mas_adopt_children() parent usage maple_tree: Replace data before marking dead in split and spanning store lib/maple_tree.c | 607 +++++++++++++++++++---------------------------- 1 file changed, 240 insertions(+), 367 deletions(-)