patch 'event/dlb2: fix race condition during dynamic linking' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:02:49 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/79f1ffd3cd593885f23d048c23f7f09bf27c60ab

Thanks.

Kevin

---
>From 79f1ffd3cd593885f23d048c23f7f09bf27c60ab Mon Sep 17 00:00:00 2001
From: Pravin Pathak <pravin.pathak.dev at gmail.com>
Date: Wed, 21 Oct 2026 13:20:41 -0400
Subject: [PATCH] event/dlb2: fix race condition during dynamic linking

[ upstream commit e3e29edb3868b14051a3d2f9a52652e5962c1a94 ]

dlb2 handles dynamic linking and linking asynchronously if queues
being linked/unlinked have traffic. It starts a thread if not already
started to handle the process. This change avoids the race condition
in thread creation where sometimes the thread starts immediately,
descheduling the calling thread and finishes the job and exits, and then
caller sets worker launched true when the thread is not running.

Fixes: 5433956d5185 ("event/dlb2: add eventdev probe")

Signed-off-by: Pravin Pathak <pravin.pathak.dev at gmail.com>
Acked-by: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Tested-by: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
---
 drivers/event/dlb2/pf/base/dlb2_osdep.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/event/dlb2/pf/base/dlb2_osdep.h b/drivers/event/dlb2/pf/base/dlb2_osdep.h
index 382a49090a..261b680fc2 100644
--- a/drivers/event/dlb2/pf/base/dlb2_osdep.h
+++ b/drivers/event/dlb2/pf/base/dlb2_osdep.h
@@ -209,12 +209,14 @@ static inline void os_schedule_work(struct dlb2_hw *hw)
 	dlb2_dev = container_of(hw, struct dlb2_dev, hw);
 
+	dlb2_dev->worker_launched = true;
+
 	ret = rte_thread_create_internal_control(&complete_queue_map_unmap_thread,
 			"dlb-qunmap", dlb2_complete_queue_map_unmap, dlb2_dev);
-	if (ret)
+	if (ret != 0) {
 		DLB2_ERR(dlb2_dev,
 			 "Could not create queue complete map/unmap thread, err=%d\n",
 			 ret);
-	else
-		dlb2_dev->worker_launched = true;
+		dlb2_dev->worker_launched = false;
+	}
 }
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:46.133585458 +0000
+++ 0243-event-dlb2-fix-race-condition-during-dynamic-linking.patch	2026-12-03 12:52:39.199036521 +0000
@@ -1 +1 @@
-From e3e29edb3868b14051a3d2f9a52652e5962c1a94 Mon Sep 17 00:00:00 2001
+From 79f1ffd3cd593885f23d048c23f7f09bf27c60ab Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e3e29edb3868b14051a3d2f9a52652e5962c1a94 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list