Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp322395lqb; Tue, 4 Jun 2024 12:25:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTyzjWchDQqH1dbtXu0drK9ykMCj/3Zee7cBCppTRKE/jzUvRTkKBAk4kNtrFijQcjAhiwmWI8oHgUe/hilfI2P6AoCN/3VwvypYEeAQ== X-Google-Smtp-Source: AGHT+IFmHPUzvV8nIchY11IYOfNOO0vPiSWx76Xi/v8fhjUTW5kEn2nSoKNBTRpCBbuNq6T4Zd28 X-Received: by 2002:a50:9356:0:b0:57a:2f7f:4800 with SMTP id 4fb4d7f45d1cf-57a8bcb30d6mr345959a12.34.1717529100385; Tue, 04 Jun 2024 12:25:00 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cb4127si5372190a12.611.2024.06.04.12.25.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=neutral (bad format) header.i=@oracle.com; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=K4q7JTPl; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-201281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C653B1F223CF for ; Tue, 4 Jun 2024 19:24:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8FDC14AD36; Tue, 4 Jun 2024 19:24:53 +0000 (UTC) Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F74414036E for ; Tue, 4 Jun 2024 19:24:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529092; cv=fail; b=qRHeblvnsKY72R0plc5b43CPkRuubRpwZDx2Jg4iD79KAHijBiuJRAaFQ+SdnUeed+SY0DRPsRH93P7dTsbdkqek0XGXwLRK+0WoqTn1BV72DxW0B0E2uyh5X+GGVAbKZe2Sb/9+msWvHY6PbdQJWe8muz27GMGxbmSw2wHXoqM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717529092; c=relaxed/simple; bh=U/6Bu9brVkiIO76SLaTPfyZamtIJxs9J/TUasabWEr0=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=UOPHee6qo2S9c1whocXlwJwOznWz1it2b0QWYNmbk+gSkK6u1k+Jfp97uJeeYpc6woY+nhwJdRUoxV//jrnM2gOpzbdXZ5Cp2Kdjsp597dnoDhHLmV4QvMtm3txHfEE4gP3UtYOq40+tDOcyfgggb7rpOflxmf2aI9m5GSl5cN4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com 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 454BmsFC005875; Tue, 4 Jun 2024 19:24:32 GMT DKIM-Signature: =?UTF-8?Q?v=3D1;_a=3Drsa-sha256;_c=3Drelaxed/relaxed;_d=3Doracle.com;_h?= =?UTF-8?Q?=3Dcc:content-type:date:from:in-reply-to:message-id:mime-versio?= =?UTF-8?Q?n:references:subject:to;_s=3Dcorp-2023-11-20;_bh=3DnTO7MbMTmPQY?= =?UTF-8?Q?2hsAp96BQA0jAlhGA3YhFcf+o85x8Es=3D;_b=3DVXxwiLTgKy+7PgIG7ejZ9Xe?= =?UTF-8?Q?mig6/aLVSMjlFpx7zj+yiKbNgqpCXVMwDwccW/xMjSShC_B1me2LAHl5pBSyH/q?= =?UTF-8?Q?LP4T4D76EhiR0oxWKU+dsz61jA7S2QBfrkvKELcq+PKSNpZaP/E_HdHoZ1AdmmY?= =?UTF-8?Q?FrlWj+oJHaJHzTG/T2hZXbaGki5A+AuRHHCwX+uVrCj6y7hgveV91363E_j2lef?= =?UTF-8?Q?vu2uoI8KzxqhPwW18JVaYEXnJ9TzOKylAudgjL2jrGJRbswUExBHzma/GXn5mXu?= =?UTF-8?Q?_juZqlxV0MC0LY5QpBjw7ivSHQi5K65kgQlFockhkU6WN28ofB4iprFEz35NFJV?= =?UTF-8?Q?MzUV/E_gg=3D=3D_?= Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfuvvwqbw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 19:24:32 +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 454Hfrwk023968; Tue, 4 Jun 2024 19:24:31 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrqx9vrc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 19:24:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FwdcJ1zjWQoFnUPklFcuTK/xxvjJHyBwyf4DZEdzINDwjDyg7KUOQK7PqPur2grTg5guHkCXoa2DzOp59leiUubJvViDWfFKIiQCklbnViNOhzArr/3LGA+xqLmgA3RabsLqwczWAhfmfH0WhrryEIPjEuAAnr7xbn5rxoMf3yGAM8CXA2AkCvp6rZmgEvmAFILMnog70xpC8cFhLBOZ9MP9FhhgZ6S/4LTsiOKYKdFMhDNLz8gwb+nWN2fLcnCJP7EjIRblNI1Qg7bwU7HD7mYdu1bfuwUWRR5nDQSHr+S393SsB9/Qnum28WQEfX0AGCUKrJfbdW4ezc9RJlufsQ== 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=nTO7MbMTmPQY2hsAp96BQA0jAlhGA3YhFcf+o85x8Es=; b=FfBTfdCFkOfxLAu3wVCsZNkRdVU8Ih1akR9X0UUTbH7M2HmPbb2jy0nwfJAGnN9Zl1MutHaZiBgZRYoAH9j3839sRas6Knmrp01Xxv45mNWfQdnnPxlHCu9nttzFXCasoVxUFpYbIZBO2wqQDNO061ujIqmQKxNqYFKf0VKxHWOOApOFhLlDVeZLoKCSIbyIOAn7+QNzRMGrBwEZEZQ4aL78CRXNViYh9U/xTFyznfr8NphdqFD1J3ULqGb5H5KdyfkMiC66E6SjjgFvoPouEK5A7jjeJC+3STLKmLVBr/MESvCPQ8uMOnMlBZXxVIUcBrIh0jzXcNGoCReS4GTxZQ== 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=nTO7MbMTmPQY2hsAp96BQA0jAlhGA3YhFcf+o85x8Es=; b=K4q7JTPl89wqcFi5xvyy23CPOVH7YfUqFKhKMuHNqaRmtMUHevWHNXUuu7CtzXywWmBzkPZeYuxBuR0Q6LUcF0Rd2NG5J4PLRJbsaRejriObY6Px0V133yG61HBRrHoq05ZtKe8ElUpFO7D9aU03Rvn/V4FXCdifNtRDh1CnsfU= Received: from DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) by BL3PR10MB6186.namprd10.prod.outlook.com (2603:10b6:208:3bd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Tue, 4 Jun 2024 19:24:28 +0000 Received: from DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490]) by DS0PR10MB7933.namprd10.prod.outlook.com ([fe80::2561:85b0:ae8f:9490%7]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 19:24:28 +0000 Date: Tue, 4 Jun 2024 15:24:26 -0400 From: "Liam R. Howlett" To: Sidhartha Kumar Cc: linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, akpm@linux-foundation.org, zhangpeng.00@bytedance.com, willy@infradead.org Subject: Re: [PATCH 09/18] maple_tree: use mas_store_gfp() in mtree_store_range() Message-ID: Mail-Followup-To: "Liam R. Howlett" , Sidhartha Kumar , linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, akpm@linux-foundation.org, zhangpeng.00@bytedance.com, willy@infradead.org References: <20240604174145.563900-1-sidhartha.kumar@oracle.com> <20240604174145.563900-10-sidhartha.kumar@oracle.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604174145.563900-10-sidhartha.kumar@oracle.com> User-Agent: NeoMutt/20231103 X-ClientProxiedBy: YT3PR01CA0073.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:84::7) To DS0PR10MB7933.namprd10.prod.outlook.com (2603:10b6:8:1b8::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB7933:EE_|BL3PR10MB6186:EE_ X-MS-Office365-Filtering-Correlation-Id: ac4ad638-21e4-4ade-8ed1-08dc84cbf3f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?XomeUMLILvxzzLB5WPSZDJpIuUpigrsleaB8xOABnms5Ui2sg47t+BRfdMyD?= =?us-ascii?Q?n/0wrmB0VX9zJOEEKbchev1XJhWTcfIUt+/Bami/+4vYbrS71cuxmWVakPBi?= =?us-ascii?Q?4DuWAFY04Nw/UfbvpDMOQcniDwrV6ESIUoLTZHnFq9cVFvuxqfXdv0uQHw8y?= =?us-ascii?Q?gP0HhLFB+8QiZDGzpqYSE9tKahjKZ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5bp8ZdsfqEMfyHceBbB+dRo9om2BIIXqExopWGyIQ1bX8HV38uuvup07?= =?us-ascii?Q?3pqzgwDxZBbXuvG6nP2cRsdO/aynJF0pvYA6B+17zbwIovO54It9ZJKQ2r40?= =?us-ascii?Q?Kx11cEF7EVQf6Vu0hxwKmKfzxjPAL0MjURp/qCliUJQJjgzUd8WfFVyha4bf?= =?us-ascii?Q?dxvbJQ6QfE6jr2xQh2nUv5zokd/qIC0imSkwkmGw0g=3D=3D?= 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:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6nqfGn3Rid0nGJCqhni8mN2mkHEbdTW8VN7nVZQV0duj+1kyqmLrSFqZvgmk?= =?us-ascii?Q?W8y5R4YPtV/bf1YRMt22XZQfRMqZcT7J9Xcg0gyIOis7pYU5EWcvQQB7JIXf?= =?us-ascii?Q?CPJ4FKoZCRIZ4grJjnuOU98gXi8Uc4kNkoiV90pla+YzNNJ5OUTFr4caPdEK?= =?us-ascii?Q?UwbtGygsY59RE48MOUVbtSDtpilNl4KO6ntKP9nu3E7GoXsm5YNrz6Lbe1CO?= =?us-ascii?Q?wC6+OUwrORHGMg1M+0lNC2tiqwHpkQp5lvsBbBbBqhmldsjzshtrJkWlCQLX?= =?us-ascii?Q?fBgpvcOKkMELXqA/PIOclvqypo4/xYOezX+8+yqgNvA2O7U+Eaex22ZZBOXU?= =?us-ascii?Q?UBos/TA5wGUosW6rxhAIizky6GSqiMo2ZjnOWkyvW1wP/wYwiBf2GiNxhVg0?= =?us-ascii?Q?51EpqOOyaTUEZ4Jbd0IxnvFFJFoRlFpr6w0YynhOJUZD4/4M5XRpCoTckCMz?= =?us-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cTaJM0qHvQUP8BKug5RvC?= =?us-ascii?Q?/WHVRj7JxITyaYinvSKT76X7Ki67D8AiwqIEKBORNHkGhesuaAn/cPGTETYx?= =?us-ascii?Q?Tyr0TzdTyTe4oRD+OwfFtjVHivPuGph+K1fuX5GXJ/Wrnutbuwo3sUyZ4fQ0?= =?us-ascii?Q?UOP7/rngWXldS2Cwm3TmdGqjm4HdJeReVBWoE9+EvpI6wMMAuHXoHrVj9fv2?= =?us-ascii?Q?PLebhS3DmZuQPdnpCezQYnSWCb1fMwJIfqyxELlX?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 17886ymFWPmg5iYjfMWHjKfbdhr4M8VuFziH2TEj+5FdM3eJL9HECCgaEGkCDYl+ax8M0gm+vCmzbxX/zDvmJTSOPWsj0nLDGEp/dK4ZbAm7YrBHs6lqR1O1Pnqp/d2DHfAnaMXBOc0Y+OcqdwsW1VPuukuHSo+Kj9TMdaCUhwUcS/bP4LOdhl0SFsPlmOGw2L5KfLdenHdWFqp89XCLdUxAnH82nitnpInjrlgfzHe2yxTDfl9x58FptBdZahs0hAIb2doO8/str+wxQk+mzRtwVErrazA/yaSQs6m9eZeazQyAre35Hke57oXOFfG5K1zHZNWK4xSvfZEScKw2o3NkfEWxs1vI+v8JnaBVGAmIJiGidWt+uoMYsRSiLAl56sH55PgP/G/GrziwTddb+zoAIHCkbuVfP3thPNSDBTsNLZHRdE+5P8cgymaTup4YV3/avMdH+s0x4qbbQVpo71ZpnzbDoL081IY0ci8IOeDGB9WZKdkSqVPbVI0Ka6JmOyLigMDKsdtzYk+ocudY2lJI+Y88c0icuQodAS2XSm5AAkIbBOgjuWm9rBkeRCGbgKZX6omDyNmGuaw1p0i56xHQioV7kU6hs3a5/9kEAdo= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac4ad638-21e4-4ade-8ed1-08dc84cbf3f1 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB7933.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 19:24:28.6780 (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: V6xFxH57veNjGacH7hq+j0oZZUegbbaJe6KrYhFUsCBBZMfj+1ypE1ixFvADk2XtruRT4PvJqibHPA+eE4WlbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6186 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-06-04_09,2024-06-04_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040156 X-Proofpoint-GUID: gUwIvr8BZu5UzIDpMXQaW1hBMmYRoFTC X-Proofpoint-ORIG-GUID: gUwIvr8BZu5UzIDpMXQaW1hBMmYRoFTC * Sidhartha Kumar [240604 13:42]: > Refactor mtree_store_range() to use mas_store_gfp() which will abstract > the store, memory allocation, and error handling. > > Signed-off-by: Sidhartha Kumar > --- > lib/maple_tree.c | 12 ++---------- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/lib/maple_tree.c b/lib/maple_tree.c > index 34ff1b3f729c..e3ec6649f7da 100644 > --- a/lib/maple_tree.c > +++ b/lib/maple_tree.c > @@ -6457,7 +6457,6 @@ int mtree_store_range(struct maple_tree *mt, unsigned long index, > unsigned long last, void *entry, gfp_t gfp) > { > MA_STATE(mas, mt, index, last); > - MA_WR_STATE(wr_mas, &mas, entry); > int ret = 0; > > trace_ma_write(__func__, &mas, 0, entry); > @@ -6468,17 +6467,10 @@ int mtree_store_range(struct maple_tree *mt, unsigned long index, > return -EINVAL; > > mtree_lock(mt); > -retry: > - mas_wr_store_entry(&wr_mas); > - if (mas_nomem(&mas, gfp)) > - goto retry; > - > + ret = mas_store_gfp(&mas, entry, gfp); > mtree_unlock(mt); > > - if (mas_is_err(&mas)) > - ret = xa_err(mas.node); > - > - mas_destroy(&mas); > + MT_BUG_ON(mas.tree, mas.store_type == wr_invalid); This check should be inside the lock as it dumps the tree. > return ret; > } > EXPORT_SYMBOL(mtree_store_range); > -- > 2.45.1 >