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 D69A4A0544; Thu, 22 Sep 2022 09:31:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32B5E40F17; Thu, 22 Sep 2022 09:31:13 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2054.outbound.protection.outlook.com [40.107.94.54]) by mails.dpdk.org (Postfix) with ESMTP id E6605400D7; Thu, 22 Sep 2022 09:31:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kkelas6bbpGVQpswlxKQpXSAZ90s55LTuvGRbUj9718fITLxrXO451VyrELLZE1l/VIu+0enLWju3+bhkQsX1d4qUK2Gazva3uLeDwyep+Nu/vUYOuFmqLPzjsOr8zggAFWr4aowheK6eS20EaaFtcWudma+S7WA6kjpgg4OAwywxOFQd6WAbrHe0ZuRal32o2T0AAs917CqWwLmirbLWFk7+08b647EBnhh3gCiiSLzIQLIpJqrq4r5rFBRXO4HKC7AFGJR55tHM9MouUHAujkcn08sF7Y8MOFfxJmcHXb50FqbuAznAeuLYTANsm1B+NeOj9L2N8MwCl5x6S7JsA== 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=qbNyP4RhwrzmSw1SkHekYLOiYEnbQl8WePaUvoMh0ms=; b=OrvhU2qHEKX7i2PnrWmY+EgjX014g+W3MY3gqIlLcwIPIeh2tD2+CzUPJOzAuTHMW9KMCuJQtDnWT+k3ANR1K3/z2+wMvSEhMamoKx+CL52FcIX7ntNsGeB9duzj5YgfWQdJoWPxwq/wj97ka0yMKkmD5ADylm2rUB1eo6kMIppxntqcJ0fgIUBNmRMhR5HzYichQs8Q5fq4VVW2eS0s4L1f9A23sGlqU3kAIuO+N8HqNgzrfzVeUQLfgsMqaHX/Wdp/6RSd7rW4RjqkKAdhOuufbJzKJSmEZIQlnvKbHuFd+R/DOwV5W1KDdv4xLBjpFI3ZBEPLza3sgtgyK4QCyQ== 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=qbNyP4RhwrzmSw1SkHekYLOiYEnbQl8WePaUvoMh0ms=; b=ms2isQLksagdzZ/dVK4WxdMDQPBr3AprjiAISttubWELjmV33+e99DHFGrpyqIi37+MMkm1hgEnmzS4v0Ffnk68Lrec94Q3mexiyMP4QYn6dyHlIXOnrhKRJiCad1h5HkAX96CLuvRuGiiqb/oPQ+bFFFj03qMyRb7HJD0lsZq8PWqGMMP4lQK2fFn698y7RwVYZVu8lHpRhIq/U02mAF8xqmBV8NA8TAM9lbRiytLiptsni26AKZe5g7+phIADMXcdMqhCw4xLLQNdqP7fkJzUMrhT95d9LUeTaaDPo8kAbBffd3fma9f50QYiPeWPEC4jMalC0otW9Fr2YdHliRQ== Received: from BL1PR12MB5945.namprd12.prod.outlook.com (2603:10b6:208:398::14) by CY5PR12MB6178.namprd12.prod.outlook.com (2603:10b6:930:25::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.21; Thu, 22 Sep 2022 07:31:10 +0000 Received: from BL1PR12MB5945.namprd12.prod.outlook.com ([fe80::31d7:54cb:432c:a9b2]) by BL1PR12MB5945.namprd12.prod.outlook.com ([fe80::31d7:54cb:432c:a9b2%4]) with mapi id 15.20.5654.014; Thu, 22 Sep 2022 07:31:10 +0000 From: Dmitry Kozlyuk To: Olivier Matz , Andrew Rybchenko CC: "stable@dpdk.org" , "dev@dpdk.org" Subject: RE: [PATCH 1/2] mempool: make event callbacks process-private Thread-Topic: [PATCH 1/2] mempool: make event callbacks process-private Thread-Index: AQHYqws8kkAo50lQiEuClKVvT2fxNK3rU7nA Date: Thu, 22 Sep 2022 07:31:09 +0000 Message-ID: References: <20220808094236.3395516-1-dkozlyuk@nvidia.com> <20220808094236.3395516-2-dkozlyuk@nvidia.com> In-Reply-To: <20220808094236.3395516-2-dkozlyuk@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR12MB5945:EE_|CY5PR12MB6178:EE_ x-ms-office365-filtering-correlation-id: 70e94d7d-e8e7-4633-2282-08da9c6c6b79 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Plw8Y5tm5LuzTunm507cUoQbJl4HsmvxgF8gevYQmL8Xh7Awqzh04DyVOOFyMlBs3g6CYd72rYfR6GYVByrx/3e+3qunUgguQYszU1UPJZlp8NNlR5RPbbrSpVLz529CFm2WqmWqPIBqAbjYxu2DHzJsz7ElNQKdkZtQbiXgb6Ocqp3bkjnJ7jLQr/2xO50ZCB214qCIFB8hOFNGuosdCHDT7uBQsYOGpjRKEsXdkBpi77257B/4L+WPhYYYAtC1YUoYxpClqkJ9MVELaJbFGlp/EKgFjBq/5ROuuac51ozvaY8Nb0eHiUSJROp2dZ8pwV0AszwAVyZHo/YeUlWHrAam0GoGStr/zMhCI+FIVHhcc2XmSFd2mdWZT7xjc0Sriy3fPj4TyTdq8udERiBpvn8gzGhUTSfYzg4ithsFyxYRp4MAEHQM1Q256FmSI2G9ac0+XKT+5dz296ArC+KwiD/mnLolYYsnbnbVd2DvkPjX5yqKKChRGPXdeHoewQ05p3flMqlhTJfK0+E9zXPGu3c+Xsp4xPum3AD6rhJ1pCNJ3DlJzTpKuTeLCkKbPQpagMxZmVhSyEkCMMqqv/D5pxMDL4uNZc7spGAenbG/QeSOXdJpL4y0N3XT8ak+3KooE3z03fc0WiKG6a9sCjUPu1n8M1mPAHLGLPj5QprMLChgEf4zHwx4XGoCwFWt+E7+rcW0rJAw2ZzErTRlRgxs3ZsThSVnx5dbM75KFzoXDVU1q31Bz+/BqIMZgvz6hm1Xlet8NV8f9jYU/uzB6yGIog== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL1PR12MB5945.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199015)(52536014)(316002)(186003)(83380400001)(2906002)(4326008)(66446008)(38070700005)(64756008)(66946007)(76116006)(66556008)(86362001)(33656002)(66476007)(122000001)(8676002)(4744005)(38100700002)(478600001)(71200400001)(55016003)(53546011)(9686003)(26005)(110136005)(8936002)(5660300002)(54906003)(6506007)(7696005)(41300700001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8Uiw1MJM9Ox/630Wn2PJVi9R9J8GIOzw3TrKi9TamYnErFE1P/bhq++7ODov?= =?us-ascii?Q?cmwSRve9Sh/0A20Fpz94pZHgLp1w+xBeUTvomQzch/9oaao9jq470cDS3XPs?= =?us-ascii?Q?0SuiVCeNJk3l/OVXCqIT4ZS4CAhVJTuNhiFU4dv3xkITeIIIofwts7TuV9nE?= =?us-ascii?Q?cnexPeCNLXGxshBH37t+/pBCZLEif81JPDe1uxY0+3aVhHExTe+y27Wagz/3?= =?us-ascii?Q?BtQXioXLeOO3n8jzbHsxzVT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=?us-ascii?Q?N79zFwQrjfxm0ehg/r2VkEarSC24jhU7ORPqtQobR8BPXY1CksG4N1L85rVh?= =?us-ascii?Q?lOvixs+Oh8LBczHNGOJ1L1W/CfeeQ7X4BwINgoScJgGI3r1kZPhuN/xRSQsB?= =?us-ascii?Q?Em5YVdsNZlnZXQvB1Jo6jY0EcpDYLpIQBR6OM51ZC8KZMwIiqE6kV4Utpv1y?= =?us-ascii?Q?7S4Oxkt6c97gnwfB/UXDOW0YW5ALcDuKQS05mHQcgZlZqGAdw6kHGv5L+ikZ?= =?us-ascii?Q?koiqECiAvlNlPqf3WH+6JBzrlDRedld9Ya1ZoR876TIfZRXxltw1NAVdJC+q?= =?us-ascii?Q?RqlQq+l9VHP1SxJuJ0iRHsVASYZYGFGPNC3vpDuXu46GgO9PkMtzxBGlXntc?= =?us-ascii?Q?gM+UhKxo/NMp1th3uDxrJditMTnMf2lrkICUMpEMIegrIZivRwRzT+J87Q8I?= =?us-ascii?Q?/Oi0dipxIDcL5vZd9UP3I3FJCfyl6WwTCeM8whyF?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5945.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70e94d7d-e8e7-4633-2282-08da9c6c6b79 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2022 07:31:09.9692 (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: 9tJCNJFkDjXa331pJSecKaiUb4wTt5v5INA2c+X8spzGIgkrX2zhG05OfnaCMkNpuhsx/8KiUk6jvubFl4zyvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6178 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 > From: Dmitry Kozlyuk > Sent: Monday, August 8, 2022 12:43 PM > To: dev@dpdk.org > Cc: Olivier Matz ; Andrew Rybchenko > ; stable@dpdk.org > Subject: [PATCH 1/2] mempool: make event callbacks process-private >=20 > Callbacks for mempool events were registered in a process-shared tailq. > This was inherently incorrect because the same function > may be loaded to a different address in each process. > Make the tailq process-private. > Use the EAL tailq lock to reduce the number of different locks > this module operates. >=20 > Fixes: da2b9cb25e5f ("mempool: add event callbacks") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dmitry Kozlyuk Kind reminder to the mempool maintainers.