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 4FDEEA034F; Mon, 30 Aug 2021 10:00:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC9B441100; Mon, 30 Aug 2021 10:00:01 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (unknown [40.107.223.78]) by mails.dpdk.org (Postfix) with ESMTP id 79427410FA for ; Mon, 30 Aug 2021 10:00:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QcHC90K6FnSOW6sduj0e2KfFGFgM3X4JL1GBQdkQqNfAAQiia3ePrndiseYnUaIBTQFHiYbNapxiaEz5ehMu4/Mxk3Bhy5gwAtet0FiGrvkly6VTirBJzaBpra7JH+ioV/sJyEeZzkfHIFZLTihX6eyEkeM0TPOtAFTgD4z1JupyTr6cFx4K72BeQ9lnJyEUm6KqnCHAjDqKYD2MYKJ8IzcDp9AEYkZyspuRZ8v5bGIW34j7fugkLF7lEiHtQZBJ0Eeb3+BxDjudNP5k8Wn22TEUqCVhPgkQtYOPc+buk3IY4VkBtAA3hR95GygntYuFoS2J0pj6sl5goE7nV4x62Q== 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=nEjPWJhH7aq9vYuTIPrJq86P4GDbtdeE0v2phrsnRoo=; b=lmFPozu4eYFlmUyXvTE3+o78Kv0pyHPYn5XQXqkIcBcNm6V3yUh4qVCidWH1o9tc6s7g93nFtgNw/UuyGZ+yk5LSvyEh8w7uTtgDXa6PPMpu5bksLur0uqCQniyuR4X0e/z4YTbUoUGhQH4b4noSzZUYlVDsciZzny0v/rWKwULSdvmYOtKRdiMKjFwno3TlXoKPornI+D+wZbdOwy/a04blLBzmB4MAVpjOd74PvLoZDXIHIxmiqozjZ0DMX6AUZ2BU6/QMn8VqrnCcPwQmZDKO1hJN4j39K8wRRzc+egzEs85wwLwbbXaNllGIV8nCcg03BUM9iD1U3EknqV++/w== 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=nEjPWJhH7aq9vYuTIPrJq86P4GDbtdeE0v2phrsnRoo=; b=G36B3Sn0UXPbHZHR2wJat4XlG2XqStPPGCgC6+oB8kymTdViBpjPzEuPinlljSPo8tbL97yXfg/YAsOyCMxVtk2WgADIttA4JSoP9jGk68rgKhc3+guGFl0+AS/MvVf3gHDPze6DGi2hzLI5RvBgnRINl/iQ4oxz6GYkESEszgHcg+Z00lHbINy4VY9IrUGXQ8OzmVpI5wjicEe7PgHoBIIH/u8FePOplpZA8fPu2w8qc4gJuj6OzC4qoH18h52b6kG+VYKl3xjvexzxRiCg8VWdc8mfQ4ZpActgJxrfTnQmx/5t0NSf5fuaLr0yWmt5IgtPvWAf9RGddH8onMQuXQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB2924.namprd12.prod.outlook.com (2603:10b6:5:183::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.24; Mon, 30 Aug 2021 07:59:57 +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.4436.024; Mon, 30 Aug 2021 07:59:57 +0000 From: Slava Ovsiienko To: YE Chengfeng , "asomalap@amd.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: fix potential unreleased lock problem Thread-Index: AQHXmuIeCcZr/GfUn0K0ATpxszD+AKuLss+w Date: Mon, 30 Aug 2021 07:59:57 +0000 Message-ID: References: <20210826185633.107314-1-cyeaa@connect.ust.hk> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: connect.ust.hk; dkim=none (message not signed) header.d=none;connect.ust.hk; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ac34c39a-9012-4ae2-d980-08d96b8c28f4 x-ms-traffictypediagnostic: DM6PR12MB2924: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iaS3s9QlyzL6/My8bCw2Uiqx/vY6dP2FLiIEheoyUUAyo55JdaEivFja1Ak5JUpehFyyncGGjzynECtDt2y6jPzS3/Dv+NCXVk1eIU67qu/9+TQ5Gm+1e+SO1tpadhDs/qPKE9PyPL/0YynuWshSbgGI+I2AHkOPmyqCp6Dakibp6iMqjHJmPPllnv9UE5vVmMvKjOFDmg4ggGnCr25dq5PiDwGD6qQnIJxGGKjVsZeaX356BwOvAMIaIyIDW19X/2ZRsgQrqhpFYSzhnbtPua4uhx5L15OKY4UUZV3Hko/SCdSyneDY7+uyOm3fizlCwHGoSbaaDA0+9qCvhkvoiTzcrFWVIyqBv/kNyGx+fx1eaVrAOD0GBIPMnnR3B6GBSWTSyRJZSrBMnBkSjt3DwRjfNWIUzTa76cKvcgq/W5JZg0fGaBx1xtsbK2DxWiKEPnrzTd81TGuG3szTWaLlHJTC/GC8XAIgCQluXJy/IcpJKCWBYqudbMP5t2TOrnoyYjuY0fuOM6CDbIwcblWTVxh5HQ1YzJoEjHCt3HtUYdLmV3yQL1FYklsZEOMeg72a/LM92aLyR2Jzubw4pjDU5tK10y1kn/WgEmdEzweWsuHywRTexE29SME3v4EbndzqKWH0z8cw5Y0BpkeqZmyAB06GXIrsbGKmaQo1tjGPvjwBtwcQrTe4dx/hXUwrs73tQAsggLu1uS2WBybx+DVsYg== 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)(136003)(366004)(376002)(396003)(346002)(39860400002)(83380400001)(186003)(478600001)(4326008)(8676002)(66476007)(2906002)(55016002)(6506007)(110136005)(53546011)(66446008)(33656002)(316002)(296002)(86362001)(9686003)(64756008)(122000001)(5660300002)(7696005)(38100700002)(8936002)(38070700005)(52536014)(66946007)(71200400001)(76116006)(66556008)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?K0IzTk5TSmR5ejFIZXlFdTQ5WVYvczFpMDlTeC9icXJGQ2NoME4zazVXVFJL?= =?utf-8?B?ZzNjQldsUTFpQzE3UmVFNHBaYzFmVXFCLzZDbGF4MlArTzNML2lUZVNUb2Fk?= =?utf-8?B?R2xYbW5uR0RaeTdvRzNRQ2ZjVWxCSEN1TCtrVDgyaE1NK2lTelFBcCtYTU1x?= =?utf-8?B?QUxLOWhMcG5Zb2MyOVhYL3pWbFhDVFdTSU5IRlcwNDMyWVJ5VzFwSmZWd3Rt?= =?utf-8?B?NFpoVVNUUm1OdVZCNm9yeTdtVW9tZi80RjlORFdWOGp0ZzY1M1Q0c1BYL293?= =?utf-8?B?cXNYUHRQVHIzU1JSUmVyVjk3d1YzZGFCTzBSZ0pFZ3J6dW1FTjM3YnlHdis3?= =?utf-8?B?QUJJRG9YOTYyV29iMTV6Zy83Ym9HQkZLSzNmeVRMaytQaG9RMTBBMzFLUHBL?= =?utf-8?B?RVNMeVA2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L?= =?utf-8?B?RHFVMjBOZjFBNkJkTjRwUTBnR25pZmcxT0JWS3dNNG1xMFRqNnU5TDVpZUZK?= =?utf-8?B?L1BoVDZLN21VZDFMWXRkSUY0dUxNR3FMNXRaTk5zS094RDFXSUlVS3doYVhu?= =?utf-8?B?TEU0eks3cFpreVJxK2grdE5vVW5lMWEyUWNkMVBDUmt3QmZzYnBEUCtHM3Mw?= =?utf-8?B?N0pDNjBjdTVKWVUzdW42REVjenBKazBMajJWdm45Q1hsNDVoYjZwd2QxVlhB?= =?utf-8?B?aUI5cXNFSGdWQ2ZtMEh0ZkNsL3J4eTAxUlBBV1hPcXY4YVJXQVpCaUhsY0E2?= =?utf-8?B?WnJEdUNiNmZXa3BQVmxpTDNPSGRSUFNQUTdFaXQwcWs1UXNacnlMcXo5ZHJU?= =?utf-8?B?dFR0TE01WTZTOEhJcW9MY0hrYUpkU3RwYU9HMU9KYVNlL0NPU3hxclVrTGs5?= =?utf-8?Q?7CdjONtAiYGmKGDyIU=3D?= x-ms-exchange-transport-forked: True 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: ac34c39a-9012-4ae2-d980-08d96b8c28f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2021 07:59:57.5634 (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: 33nW0lTM8pzCOjY5cgiSIzeXHvI5ke2jZURWyqADa2adrO6HE+R5piULJ/efIEew1p6mjyIZfAFNLDpJOFxq7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2924 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: fix potential unreleased lock problem 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" SGksIENoZW5nZmVuZw0KDQpUaGFuayB5b3UgZm9yIHRoZSBmaXgsIHdlIGNhbiBhZG9wdCB0aGlz IChpZSBVcHN0cmVhbSBNTCBpcyBub3QgIndyb25nIHBsYWNlIiDwn5iKKQ0KSSBoYXZlIHNvbWUg bWlub3IgY29tbWVudCBhYm91dDoNCi0gdGhlIHByb2JsZW0gc2hvdWxkIGJlIGRlc2NyaWJlZCBp biBwYXN0IHRlbnNlIChzaG91bGQgYiBlInNoLT50eHBwLm11dGV4IFdBUyBub3QgY29ycmVjdGx5 IikNCi0gaGVhZGxpbmUgc2hvdWxkIGJlIG1vcmUgc3BlY2lmaWMsIGxpa2UgImZpeCBtdXRleCB1 bmxvY2sgaW4gdHhwcCBjbGVhbnVwIikNCi0gIkZpeGVzOiIgdGFnIHNob3VsZCBiZSBwcmVzZW50 DQotIENjOiBzdGFibGVAZHBkay5vcmcgIHNob3VsZCBiZSBwcmVzZW50DQoNCkNvdWxkIHlvdSwg cGxlYXNlLCB1cGRhdGUgYW5kIHNlbmQgdjMgPw0KDQpXaXRoIGJlc3QgcmVnYXJkcywNClNsYXZh DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IDxkZXYtYm91bmNl c0BkcGRrLm9yZz4gT24gQmVoYWxmIE9mIFlFIENoZW5nZmVuZw0KPiBTZW50OiBUaHVyc2RheSwg QXVndXN0IDI2LCAyMDIxIDIyOjA2DQo+IFRvOiBhc29tYWxhcEBhbWQuY29tDQo+IENjOiBkZXZA ZHBkay5vcmcNCj4gU3ViamVjdDogW2RwZGstZGV2XSDlm57lpI06IFtQQVRDSCB2Ml0gb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