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 1CB71A0C45; Wed, 20 Oct 2021 04:46:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A55AE40683; Wed, 20 Oct 2021 04:46:39 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60082.outbound.protection.outlook.com [40.107.6.82]) by mails.dpdk.org (Postfix) with ESMTP id A83AB40142 for ; Wed, 20 Oct 2021 04:46:38 +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=wdXto8uJJ7q2zdxZksa6kias3vzNEY/M90Xw9XE1lvQ=; b=INhQTqEZ6sU4wE7zkTKzzMq2EG49Be9dNmtlMDYM7jDkRlt68nmW2dKfrrwdD9BC8RLKy+Kuu9TFhno+YElpC9q5F59M8X2vL0ZwtWWYEP+tPZjqvnAmPljIZaJO0zUPFXLe9XxlRPiznGsIytwyBnEqSEPbc8KMOzlCQylkVRg= Received: from AS8PR05CA0025.eurprd05.prod.outlook.com (2603:10a6:20b:311::30) by VE1PR08MB5101.eurprd08.prod.outlook.com (2603:10a6:803:106::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Wed, 20 Oct 2021 02:46:35 +0000 Received: from VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::29) by AS8PR05CA0025.outlook.office365.com (2603:10a6:20b:311::30) 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:46:35 +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 VE1EUR03FT048.mail.protection.outlook.com (10.152.19.8) 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:46:35 +0000 Received: ("Tessian outbound e27daf245730:v103"); Wed, 20 Oct 2021 02:46:34 +0000 X-CR-MTA-TID: 64aa7808 Received: from 96a1ee1e787e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 98F9ADA9-D364-4469-8D02-D3417F0B5FB4.1; Wed, 20 Oct 2021 02:46:28 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 96a1ee1e787e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Oct 2021 02:46:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FFPOJIxQIwzMyPy8csyq4yuuhORq6xLeddjUOxJ8OmWB7NqkjOLrYm51ssDzvbjB9AuQoi5V2voHoNZPG9JfJUolUE1uhS3Vimsk6uQYr3jQfSITCCtkoxSgVFzw75tcFruaEMPKfXKPxkS/9YdCAa7RoxlSaytARssROyd9ae53m28IzTTrVFyGJEdfIZVI/vjg3qrK2X38nHvo/2xnB6vXUpghAZv0WeMQjQjI9oNB5xH6j+40VUd2WSQ/z3auET88siRnI4Yu/QLhgHTQ4XvTC8obv8cUae3UytO6q3GnelmLNfhr8IObDdJyrIpTM4PmKIaUXzzWZ1A9uTrDdA== 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=wdXto8uJJ7q2zdxZksa6kias3vzNEY/M90Xw9XE1lvQ=; b=Kw7v6cJnYpeDLnIGxg9xLlLSWpKTNOAD4+Wzfzf3pdeAq1CMjX3bWg3+dxnumSk4sd0lanoKxnyOQOtTdD+nC8QFAhRJODkwZK5vnHaT5RI/3JX38ivd6fRL5Hi/n4tzW53IcrKS1yTtNXe/wIstsie5gp59UEM9t7OY0xErymZ9o6yoa2I9MJ4RElUCkdtPJUY+f4RCfpBtiJvacHFs6V619mEaxYccj427sOYgvpXYy08JLK+2xIzJGyy8+NVMZGm7RLLcYB0PG+6VE4B3yWLA8B8tsKu7ZfOHddrS9Btk9KCAbf0lG+d3O1HgtM0LiXjDEUqp4LRRcphUsVd3uw== 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=wdXto8uJJ7q2zdxZksa6kias3vzNEY/M90Xw9XE1lvQ=; b=INhQTqEZ6sU4wE7zkTKzzMq2EG49Be9dNmtlMDYM7jDkRlt68nmW2dKfrrwdD9BC8RLKy+Kuu9TFhno+YElpC9q5F59M8X2vL0ZwtWWYEP+tPZjqvnAmPljIZaJO0zUPFXLe9XxlRPiznGsIytwyBnEqSEPbc8KMOzlCQylkVRg= Received: from DB9PR08MB6923.eurprd08.prod.outlook.com (2603:10a6:10:2ac::6) by DB7PR08MB2988.eurprd08.prod.outlook.com (2603:10a6:5:18::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Wed, 20 Oct 2021 02:46:25 +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:46:25 +0000 From: Feifei Wang To: David Marchand CC: Honnappa Nagarahalli , dev , nd , Ruifeng Wang , nd Thread-Topic: [dpdk-dev] [PATCH v1 2/2] mcslock: use wait until equal API for tight loop Thread-Index: AQHXmYd+YbKU7xVaVkuVERXvT0WdravagLWAgAAsGaA= Date: Wed, 20 Oct 2021 02:46:24 +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: 95B07624F2F8B34FAC5EBCF6F261D9F9.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: 3cff26e1-aefa-4713-ca53-08d99373d4ec x-ms-traffictypediagnostic: DB7PR08MB2988:|VE1PR08MB5101: 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: jxr6dUSNQpn766xO0uysSLJmRehBjgjoJ8tUps4jdWYfrjZdUPvsqa8/njAWJlyusIPrvrYNZcFnvAauBVXV9/aGeSjnyuSKc8N97YlLMD5ZdemNnT3ZJd5LQfPyddYOPsjjSxBd9XuGtC+uDIwntee0vOwWpbknc/3KwHAEaN5KE5xYh8UBr8qlFGqaFY05c9X6xJRm4NC2XR0cEIUOQia+NoeOeSF90UN0r9sKkwpvoql1J/Dk6ykU8D2qYyqE4S2vLWuq9nX5mgy2mzTxys7R2RdyhTg2p5puzM1erJYhhd/akZVpHyjJMMWGE9ZvZqnjJFrT9va8stDmYg57TnTp3Qw+w0XGqmpNtgp/wktPYZVH+GA9xM12knEHjdh/GQqwmy19OCZ9hPlFnKYyoQb7ywBYkPYBWlDZzZLbavFxga0AD3hczpUxFaHX8Rrl5xCAwMZ9AUIY2YBrDGHY64zREzORI8hDsmUBewUXPfY9QBnEDww+lvBkgO0Z1pTC7I9Nlok9GBBDoXQRJ7xQmXl67cQJkIYsqoboBCLHqx/IlLOmqRYGiuVDS+NAvswa9iFYEaw3hib4Xq0MKeOtXQHzqBYaLvPU/rw/L/EyGb30mk2IdU3HVWpdMIRLFXnD71EcYeb6CLJklmXElTZcZRSJTxM6t9TTi4afaRQ3j5AMxj0YXVPprnMiczJnouY14E4OCp8e0o4shufWwmQ1RQ== 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)(66556008)(64756008)(66446008)(316002)(54906003)(76116006)(2906002)(9686003)(52536014)(6506007)(6916009)(53546011)(66946007)(26005)(83380400001)(38070700005)(8936002)(66476007)(7696005)(33656002)(55016002)(508600001)(71200400001)(38100700002)(122000001)(86362001)(4326008)(186003)(224303003)(5660300002); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB2988 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: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 929692b8-966a-431a-8b16-08d99373cee2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fwsJ/xwma7IEs8igLgPyXZkzhXSlVZMuJHJdOQxtqFeqCrBs6R0UiuW7ZYz7xosaG3FbpW0pVBjN6SseTunvSv7QoLoZS9nYeCGXvhpDUdHbofw5DHEIzK+3iaqvr4i9VohZ5/hEt/d4mE4XklKS4xw0dO87MLgZi9rTzO4irYfT7VPeaHGMlMauN4XoMqZLQNCwS+W6ivDnf/jZZ6jbEWY3buzAH1uKTwx4cgvw+woCkBR3keKyJeDCHhlhcZUZ2/NpRvCyPaTBB0Bv9CpemHR5manrcrh/+6ChHXeXqLRw4pMQ01g3dCpBcEwoHV1YMgBpRvwB5tk2hSlh8Gr/GZg9HR0kpFcWFDo74GWka+St5O7+DKmzBiVokRYii0CMt5ma8XtsBXFeFOz+DDYxvolyrOrBmHT/jilJ4gXxSdbnXPJeyRBKvkvswL47vsZghmqcGdDwbLIUYDlbf6eSckjvG1NIoo32Xh0Uw4Y1gPgulKI95iTvwmlGIjk3Y6FkOdjlXumUBh3txYcYntxmgUYSi78mjmYT9j9aH22l2CHSE3EByHEXk5OdT9Sl914oz7AUadD9xahWHjWpNa4A/sS5c/kM62ah7toQ4rC3ql9ji8I7WPXkOkvZVuXzpxbTj741MLRhOF4xw04aNAfacM9EeAP8Q7XSc+pF8SJ0d11aSo1o/ZOhdctA5ynD+QqJ07OydMTK/WugtSfwS+PVjw== 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)(46966006)(36840700001)(26005)(6506007)(47076005)(5660300002)(55016002)(52536014)(186003)(83380400001)(4326008)(53546011)(7696005)(82310400003)(36860700001)(9686003)(54906003)(6862004)(316002)(33656002)(224303003)(86362001)(508600001)(2906002)(356005)(336012)(70206006)(8936002)(70586007)(81166007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 02:46:35.1326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3cff26e1-aefa-4713-ca53-08d99373d4ec 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: VE1EUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5101 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" PiAtLS0tLemCruS7tuWOn+S7ti0tLS0tDQo+IOWPkeS7tuS6ujogZGV2IDxkZXYtYm91bmNlc0Bk cGRrLm9yZz4g5Luj6KGoIERhdmlkIE1hcmNoYW5kDQo+IOWPkemAgeaXtumXtDogVHVlc2RheSwg T2N0b2JlciAxOSwgMjAyMSA3OjEw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