From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A2422A0C45; Wed, 20 Oct 2021 04:54:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6723D40683; Wed, 20 Oct 2021 04:54:31 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80058.outbound.protection.outlook.com [40.107.8.58]) by mails.dpdk.org (Postfix) with ESMTP id 4CC0040142 for ; Wed, 20 Oct 2021 04:54:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jDM+GRBVXGrX0tzB7+1uSeTIPP9sKXnCyCs/Od3bI0M=; b=zSRAzNQCN0gBiIrBJuCn5VKYce/0jK01hdf/Vh1tUuIhJhRtigCVUZk2DMXRDUW9g+wgXsFnQHu6HgTwgv7ofvoYOTx9ekZuZPwGkVBxIhwo5Nq3+1JGmKcECEyEwUnoUFPmeOurObX95PvS99HdJ0JL2Rd4MU8hob6qvMa9bnw= Received: from AS8PR04CA0133.eurprd04.prod.outlook.com (2603:10a6:20b:127::18) by PAXPR08MB7368.eurprd08.prod.outlook.com (2603:10a6:102:22a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Wed, 20 Oct 2021 02:54:29 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::73) by AS8PR04CA0133.outlook.office365.com (2603:10a6:20b:127::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Wed, 20 Oct 2021 02:54:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Wed, 20 Oct 2021 02:54:28 +0000 Received: ("Tessian outbound 16951d3c485e:v103"); Wed, 20 Oct 2021 02:54:27 +0000 X-CR-MTA-TID: 64aa7808 Received: from c1e09614c79c.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id AC6A4ED8-6E57-4D92-A1E2-66CFC54281EF.1; Wed, 20 Oct 2021 02:54:21 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c1e09614c79c.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Oct 2021 02:54:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g6Cm1FHmbu6BfUEd8zEN/2PFZK7pVPTR2GDORYmJtz35YkWn9wY8tjNhIZNw6WOl2grWvLzOLAnmR0ipoU0PQ7CBWtUnTaj8tM0cWGdm+ER7bNTP2JuNV+vkmnEr++gWXglScND/B3NgV6m3HAEBA4JbJxdu7oqoOBa58HPt3kVs1IJGlU41caCOPoLsk5aBEFrDF6KPkSIIDRMqOfQC2/LyjvqkpPCvMZKqqnZfc3/MdenYsLkonP6T3sU/hrmf2LloKRIV77MuUm1HnoX+EGbT/qQslQ4peJrw+qTcwpZpKHihiKUYg5hqH6xuDyeCRapk1I4uER/m+H2lhIG+fg== 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=jDM+GRBVXGrX0tzB7+1uSeTIPP9sKXnCyCs/Od3bI0M=; b=BsCapI8jixLKL1L55S6NEIJJ60LeLsR/1bd+dbj7IjqjrZUO8Jl36blT1WNxvUBryBJFHoMPLov8vVVonB6yzl9+T147Z+u/z6IZRoIwvdQNWrwFqnAFrdvQ+8kcWaeVNuclaJo1e4LO2iyOxtfOnifM7+Ikki7mwyhUZzZ0Hc0wDhbfA5BNrpo79cQbCdOo4z90WlN2Yi/BLGeDCUtrv5DG/hJ8MzNWwBATwx5RmiM468n776lJuhS3XxlVNdmh6Y6FCo1zVFmIuprkhUxQcvtTDqIgX6pkvQCINszU93ReABTez0vJy3Ln16i53LeZWQRZrOVBdMPGBH/08EmIyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jDM+GRBVXGrX0tzB7+1uSeTIPP9sKXnCyCs/Od3bI0M=; b=zSRAzNQCN0gBiIrBJuCn5VKYce/0jK01hdf/Vh1tUuIhJhRtigCVUZk2DMXRDUW9g+wgXsFnQHu6HgTwgv7ofvoYOTx9ekZuZPwGkVBxIhwo5Nq3+1JGmKcECEyEwUnoUFPmeOurObX95PvS99HdJ0JL2Rd4MU8hob6qvMa9bnw= Received: from DB9PR08MB6923.eurprd08.prod.outlook.com (2603:10a6:10:2ac::6) by DB6PR0801MB1893.eurprd08.prod.outlook.com (2603:10a6:4:73::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Wed, 20 Oct 2021 02:54:20 +0000 Received: from DB9PR08MB6923.eurprd08.prod.outlook.com ([fe80::705e:f09f:7dd:500a]) by DB9PR08MB6923.eurprd08.prod.outlook.com ([fe80::705e:f09f:7dd:500a%7]) with mapi id 15.20.4608.018; Wed, 20 Oct 2021 02:54:20 +0000 From: Feifei Wang To: David Marchand CC: Honnappa Nagarahalli , dev , nd , Ruifeng Wang , nd , nd Thread-Topic: [dpdk-dev] [PATCH v1 2/2] mcslock: use wait until equal API for tight loop Thread-Index: AQHXmYd+YbKU7xVaVkuVERXvT0WdravagLWAgAAsGaCAANtsUA== Date: Wed, 20 Oct 2021 02:54:20 +0000 Message-ID: References: <20210825080127.495645-1-feifei.wang2@arm.com> <20210825080127.495645-3-feifei.wang2@arm.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: A7497659FBAAA146A998731DE5675ED5.0 x-checkrecipientchecked: true Authentication-Results-Original: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 9c1b398c-2b69-498e-4492-08d99374ef1d x-ms-traffictypediagnostic: DB6PR0801MB1893:|PAXPR08MB7368: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:4502;OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: hJk9FM0ZlatvNIeohxlOGTwQ4WTTE64gQgv42blrOHCB9n70MQ4tmRGZ6bvfUhF+LqrxG13ejlOKp1Sp22ZsuaIi+t9mCR85UumpFzLgGcKfSkwZ6K7NvGydKvNE6rDIGRhT5KUiw+cmCyiTs/skDs+n3wNx7w2qEBQ/DAZ6VxYw7KxgJPzyxubjrjlUQqydkShE8UQVc6dw0Pcs/U0Wg8Tpzw0FwbY9eVTjYXz3dAQnP2Qe2o3FPFUOdYuDfGEdUXOkiq8bqOOdRbRR/RZ0neJza2rdX8UnPUSQh74YRj4ZWgMEPiIY42FtVgFi38c+1Vgno9v81gtSEUc8+/RVhNRDN40kus0U3yvjeSjSIt0QUXvbOpitsLYplMPXCjjq733nDBXP5YWr58S5ctEpU5OnOSR91Y390wMji1oGqGojXQrGfBHz7Hn1EDSp1AtncZYrf90aJDD6bJ1hb7MfwTPPEV4wJWKzi/ZaVvDBaIxb+LE4W+msExblGf1CIpY2yBP8u1LcgKT43jw3kguietPBfom+sji7Mj5F2G/PUQkmajqEP9MHQPL4YODVuvWuYOk5CzgojDbNgMw3D4j8hpuffF02pgXJS6cT1xA1Qt9CVTWRzryGTYl7ITfzjLYU3ts2rCtLWEIW8psdlOFwfNaE5V2p7r/qbdgXe1AUDc1VWwduH2AHyv8rZY4wNUVa2BQPoy2oC3TvhVSIolXZjA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6923.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2940100002)(6916009)(5660300002)(508600001)(52536014)(9686003)(66446008)(2906002)(66476007)(54906003)(6506007)(83380400001)(71200400001)(86362001)(76116006)(55016002)(316002)(8936002)(38100700002)(38070700005)(33656002)(4326008)(53546011)(7696005)(66556008)(64756008)(26005)(224303003)(122000001)(66946007)(186003); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1893 Original-Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 911ab820-d97e-4fd2-b1eb-08d99374ea1e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D0GAWS1UB/BmsXeDynOv2ws6cVYuZJDEXfj1KIMsmVvyqMBFn7FTsam80f7jLgfvjji5LRNzJlS5K/TB6zv3doCn17pV/h0ORfnWZWQ++kh40FGlatS6Zj0eX+n+uYg46XV4uRU4HRwoGPLFwNNk+M4+EtZrkb1C3oTR2L5kohB/neLn3iDJS4mh9me1vLfs2uFIqyv/HuI99rfRN7RLRCo9wVfDkiRvIkXe83CZqb65kN6JvEy0qHDXszhLZ8zotbA51GItl9lzaJQ5KLyCLk0/4GMAjCyLYJ729WOZND+BWHXhriwktOuaIW11WjgNz1H/1tpQUgkIJP2xFH5QQqwsTngRTTxqS5OpFJ5uX+cxqHmfesSbC0z4WAyvEqfZXi7685YoIXWsHpfgQ/djNH97m/xS8tJHUh+W7CE9+xUZ5e8mzAKQeqvBiiMsNkfXD3d+dmY3OX5YbAXq+xM+RlFcXNnkJMXV3M3f6Tb09NO2l3tFYwIBL8Br37148crztiB45tbjseaRzIsZ6nPPaPwQ4cH/joVHzcRJMce3bNxWpBcs2fhx+yRBJaH3f3TCZo6cEIRCDOuoTFkIeoTB+5BpWFpixah0apVO3f1KAaLhF+ca0csdGvbUavkpMSRr7OmqOpkFl02+saDaxm+NJesqvjXInOgMQPong3sWHHBXdqQCF3mRjip883JdlHIOuq5ocS93Opb6SEmtHvc21w== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(9686003)(54906003)(336012)(5660300002)(86362001)(53546011)(52536014)(6506007)(186003)(6862004)(81166007)(26005)(4326008)(2940100002)(82310400003)(55016002)(47076005)(316002)(70586007)(508600001)(2906002)(83380400001)(356005)(70206006)(224303003)(7696005)(36860700001)(8936002)(33656002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 02:54:28.5988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c1b398c-2b69-498e-4492-08d99374ef1d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7368 Subject: [dpdk-dev] =?utf-8?b?5Zue5aSNOiAgW1BBVENIIHYxIDIvMl0gbWNzbG9j?= =?utf-8?q?k=3A_use_wait_until_equal_API_for_tight_loop?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS3pgq7ku7bljp/ku7YtLS0tLQ0KPiDlj5Hku7bkuro6IEZlaWZlaSBXYW5nDQo+ IOWPkemAgeaXtumXtDogV2VkbmVzZGF5LCBPY3RvYmVyIDIwLCAyMDIxIDEwOjQ2IEFNDQo+IO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