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 DBB45A0A0C; Thu, 1 Jul 2021 16:26:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBB59412FB; Thu, 1 Jul 2021 16:26:56 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2054.outbound.protection.outlook.com [40.107.237.54]) by mails.dpdk.org (Postfix) with ESMTP id F0822412F9 for ; Thu, 1 Jul 2021 16:26:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SKQuTIo1msrP77cv0W+V8BauFT8M/VrBOv6stXyKAmVU15XTQoZVL4cB3REQhCxwzH2Xr9C1tySCTnz+KG9brudTRCroJ2fzXexlIiPcM4fVMuD0XAvSx8fy/VZ+VtxUvprVYK85nNinjGu9NK89ZwiNZRjpdYc2Kqw1hVa4jXzshYJC568ll+TE723wSENLMENkqqzaTkP2A80q+SE1/9XeCL5fsPdtJ8aX75cb0iqjdy1uOIOfx52FdoNDoH/ARfNoOI3mK3AcXkppqf5J2C+M/N928XVjypIA2yIhiEdYyBnjTj04uLZeyZXq5aCPZz2aMOHL1vg2pIZcQ8tcKQ== 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-SenderADCheck; bh=qSGAfKyzIVxVgJD+GJg/nrhUxocG/T/ypErYaaBMHkI=; b=er4ymFIwoV8W5g6YlZG9YmWg3dAgC0y29qWkPlLrKh2Nz6/X7+bBnd3ndhzC1HHnFVshUivdLQR2CaZAhRB+Ah1NIjG8Bg4Hv4dH+AsgT1nHz0Gl3+4vnuZyGbo/bhFptA5MsppEp46fRRJojRM5b8VgitLBXDhwcfmlF5ykaRskPFs2aGys76dm1aX6yc7Q47gZYBycPr0X0CW1Fn9y8CcBAxdQwEz+DTcSe2n+UcakzivuohC6CSzrx1SdXWUcgehFZLD05KAT6M+JMO/eU6jifCxjAtrDIqypA6oOTb5Xz3iq0Al8R3gQWnHKW3wZELSnr9p5XFSk2D11S4NBkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qSGAfKyzIVxVgJD+GJg/nrhUxocG/T/ypErYaaBMHkI=; b=KG+Ji+q0/tr0db/YI4NVzEAXDrrWD62uEPvavvdKewYIvhCxV6/ga1mORd6rxqyUjJV3RY2Bom+4IyNvUIQlECpLWhJ5i4F/tAAR9km+nmH4e64dHeCGqbK/vgNNFPulWAq8idd1mqUrUfRHlVvb/AeIl5s93dGnaZ0xgL/l8GnIVkZ1QhWwPj9hjUjNMTvx0nsTPjhI7axmiD4XMdBHTBVglLkjswFdP1UjSC1h/vKH8vGrIWEzyxIln1KL3A5Zx7qGXJfe4OU/q95qV+ynJB7SmlJ2rNFOUSR40W3b2haaM5IouDNFVvTWlBmh7z96OUt+YChq6DTr3s5G/pV7KA== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR12MB1404.namprd12.prod.outlook.com (2603:10b6:3:77::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Thu, 1 Jul 2021 14:26:45 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::2521:f25e:e8db:6e35%6]) with mapi id 15.20.4287.024; Thu, 1 Jul 2021 14:26:45 +0000 From: Slava Ovsiienko To: Feifei Wang , Matan Azrad , Shahaf Shuler CC: "dev@dpdk.org" , nd , Shahaf Shuler , "stable@dpdk.org" , Ruifeng Wang , nd Thread-Topic: [PATCH] net/mlx5: fix incorrect r/w lock usage in DMA unmap Thread-Index: AQHXUt1sFGG+0lvj2E60GZ03sItGtqsfbUmAgA72udA= Date: Thu, 1 Jul 2021 14:26:45 +0000 Message-ID: References: <20210527094806.1383353-1-feifei.wang2@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.163.75.31] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f8b63f9e-f5b8-4d8c-e467-08d93c9c40ec x-ms-traffictypediagnostic: DM5PR12MB1404: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +/ljSya4la0DjWEpFj9gmeH1wPExqNPmmwDubkUMcRnCwTJEEoBlbYp52y/kjymFjYl1FUEY1nZfb3Jf21+7d5QYrq1rjsN93KKiR8mNryPSdmRuxiTLyBPGrRI87H6K/DOxBp+KQ5rJ/qLA+79aJ5/zCsGd8jAYxaPBya4934w/0WWjf5gMMH8EC9ELlZoTJ9XQjbaMMz/cr29rD6KMA/6o5WueQWmdqKBNbrbLDgmtTj9fYHAUBGpxzqwxNrovDx+zqLvv+T6fLQ0x689IOINmFKcw5zeeI0f2MC7T/+9BVJBpT5OBSLbht/ThCyabcTSAcNdS9/NL+1sziEos+nQWoECvywrf6ByG6Jc0UjG1pDAGusRlfwLebOmCelo4CvkcnrQcZU/aZJl7BKVwZZej4r/L+PhCM+Bx3+7N2Bqe7JzyU49GJAt0rFLGZn5pe1ZuAyE7tUqlhQwWulr6FW8G31Jv7OedCQyuzgLBrb+amK3r7gtjoeCqgyErQ4q8nDY0b1y8oypf9Ybdb8xYg18slYfVdPKAhw4ZMGAFTvLWjW+YIAnjAv4DGWhoyM3RODq/9qkmzoSQaV9Z93LNACy//26Dy4pgyfzlntqg5ysb4b8UYVwlQVpY/fC3i/7hyJGA3ktq6phzIlnVmPqhEA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(54906003)(4326008)(9686003)(6636002)(83380400001)(38100700002)(71200400001)(64756008)(122000001)(2906002)(6506007)(8676002)(53546011)(55236004)(5660300002)(186003)(76116006)(86362001)(66946007)(7696005)(8936002)(33656002)(55016002)(66446008)(498600001)(66556008)(66476007)(52536014)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NUZuclduTXZtSy9hVEJLOTFEM3gyL0NnS1lya2pnUTJiL25YdDUxQ0ZNTXZG?= =?utf-8?B?OEh4MFRsU0taMzR6V0FRU29jU3NjYTlieDBycEhRSEJDYm15dlc2eWEyMVNz?= =?utf-8?B?NHNOS010d0M2ZDBqUXNneU9mMGExSTAwblRudWdIL2kydktCNFJ6Y211Y1hM?= =?utf-8?B?TEVFbzgrSTUzaTI5VGRVcnJoYngzS0dLbkpvNUphVWFFU2U1N29WWXI1Nzhw?= =?utf-8?B?U1AyNmVXM2RZdlV6M1c4NmRnMkdHSG5tTER6c0MwVTZyamFiMDNmVGN6Tk44?= =?utf-8?B?aDBPQ3ZpR0dxMEh4dTN2cHpoREpZR25KaFZVOWhwaEl5TlgzNkVOY3U3bmJP?= =?utf-8?B?eXZKaTdFSmt3M3F1RmI5Tmw5b2NQcEQ4bldTWEphdG9WMTYrczdQb2N4SitK?= =?utf-8?B?WjcyRmNGQWx5cS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ZJ?= =?utf-8?B?cGFudjMrcWxKZVBZWVZmOUttblFXSEdrMWN4MmliUnVCZ3Y4S0lXQWNMR24x?= =?utf-8?B?Z0xPOHNXQ1R6djZnVjZ5bnFXb1VnbzVzaCtzME1kek5mUWEySmptUnZ2dkJR?= =?utf-8?B?T3E1NW9rOWVrbCtXUnhiV3ZBd1NvbjYrMHRKVGJGQStBQy85YS9NTEsvSUt1?= =?utf-8?B?cngyQ0V6WWh6SHMrV3EzeGErM01PWkl3N0xsaitnSG5LS041bnprVEtmcURP?= =?utf-8?B?MExaSEJIai85d28vUU9WUXkvTk4vWXRWcVFHWkNKQkF6dEN6Y29RTTMrbHpQ?= =?utf-8?B?aUlFN0tTUFlkVjA1UmFLQmIzbm9qUnJ3N25Zb3drRXpRbEVJUW43M0lkaU52?= =?utf-8?B?Z0JzQkJWakZUUVB1ZHd1aHBPclVta3dQSlFHdElEbkRQdWZvRyt0UDdHQzB5?= =?utf-8?Q?lUbfe2K5JFPpZ+Ri3inBmzzzSBz6DggCi8ctvkf?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8b63f9e-f5b8-4d8c-e467-08d93c9c40ec X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 14:26:45.0547 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CgjgFC38lRjVrRPhnLQe4nb7kLeMAJcrXhtFbxm9+iTO/aXd3l/hbfzOMShM+cHuM4P09jeGMa8RDnzO4CIjQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1404 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix incorrect r/w lock usage in DMA unmap 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" SGksIEZlaWZlaQ0KDQpTb3JyeSBmb3IgdGhlIGRlbGF5ZWQgcmV2aWV3Lg0KSSB0aGluayBpdCBp cyBhIGdvb2QgY2F0Y2gsIHRoYW5rIHlvdSBmb3IgdGhlIHBhdGNoLg0KDQpBY2tlZC1ieTogVmlh Y2hlc2xhdiBPdnNpaWVua28gPHZpYWNoZXNsYXZvQG52aWRpYS5jb20+DQoNCldpdGggYmVzdCBy ZWdhcmRzLA0KU2xhdmENCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBG ZWlmZWkgV2FuZyA8RmVpZmVpLldhbmcyQGFybS5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIEp1bmUg MjIsIDIwMjEgNDo1NA0KPiBUbzogRmVpZmVpIFdhbmcgPEZlaWZlaS5XYW5nMkBhcm0uY29tPjsg TWF0YW4gQXpyYWQNCj4gPG1hdGFuQG52aWRpYS5jb20+OyBTaGFoYWYgU2h1bGVyIDxzaGFoYWZz QG52aWRpYS5jb20+OyBTbGF2YSBPdnNpaWVua28NCj4gPHZpYWNoZXNsYXZvQG52aWRpYS5jb20+ DQo+IENjOiBkZXZAZHBkay5vcmc7IG5kIDxuZEBhcm0uY29tPjsgU2hhaGFmIFNodWxlciA8c2hh aGFmc0BudmlkaWEuY29tPjsNCj4gc3RhYmxlQGRwZGsub3JnOyBSdWlmZW5nIFdhbmcgPFJ1aWZl bmcuV2FuZ0Bhcm0uY29tPjsgbmQNCj4gPG5kQGFybS5jb20+DQo+IFN1YmplY3Q6IOWbnuWkjTog W1BBVENIXSBuZXQvbWx4NTogZml4IGluY29ycmVjdCByL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