patch 'event/dlb2: fix race condition during dynamic linking' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Nov 5 17:41:42 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/07/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/7a5b37f8f4b671fcbb9a04721d7c1b681641a16e
Thanks.
Luca Boccassi
---
>From 7a5b37f8f4b671fcbb9a04721d7c1b681641a16e 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 16c5e3b7971..79e523397fb 100644
--- a/drivers/event/dlb2/pf/base/dlb2_osdep.h
+++ b/drivers/event/dlb2/pf/base/dlb2_osdep.h
@@ -208,14 +208,16 @@ 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.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-05 16:42:45.611340128 +0000
+++ 0015-event-dlb2-fix-race-condition-during-dynamic-linking.patch 2026-11-05 16:42:44.901060188 +0000
@@ -1 +1 @@
-From e3e29edb3868b14051a3d2f9a52652e5962c1a94 Mon Sep 17 00:00:00 2001
+From 7a5b37f8f4b671fcbb9a04721d7c1b681641a16e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e3e29edb3868b14051a3d2f9a52652e5962c1a94 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 382a49090a..261b680fc2 100644
+index 16c5e3b7971..79e523397fb 100644
More information about the stable
mailing list