[PATCH v1] event/dlb2: race condition during dynamic linking
Jerin Jacob
jerinjacobk at gmail.com
Fri Oct 23 14:49:26 CEST 2026
On Fri, Oct 23, 2026 at 4:14 AM Sarkar, Tirthendu
<tirthendu.sarkar at intel.com> wrote:
>
> On Wed, Oct 21, 2026 at 01:20:41PM -0400, Pravin Pathak wrote:
> > dlb2 handles dynamic linking and linking asynchronously if queues
> > being linked/unlinked have traffic. [...]
>
> Fixes: 5433956d5185 ("event/dlb2: add eventdev probe")
> Cc: stable at dpdk.org
>
> Acked-by: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
> Tested-by: Tirthendu Sarkar <tirthendu.sarkar at intel.com>
>
> Thanks Pravin. Confirmed on DLB 2.5: without this patch, runtime
> unlink/relink under traffic stalls on all ports once the worker exits
> before worker_launched is set.
>
> Jerin, please add the Fixes/Cc tags when applying.
# Fix the author to Pravin Pathak <pravin.pathak.dev at gmail.com> - Use
.mailmap email
# Changed if (ret) to if (ret != 0)
# Updated as
commit 2631abb3e2cbad9beb3d5710fd9fd482b18b6f25 (HEAD -> for-main,
origin/for-main, origin/HEAD)
Author: Pravin Pathak <pravin.pathak.dev at gmail.com>
Date: Wed Oct 21 13:20:41 2026 -0400
event/dlb2: fix race condition during dynamic linking
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")
Cc: stable at dpdk.org
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>
Applied to dpdk-next-eventdev/for-main. Thanks
@Thomas Monjalon Please pull this patch for event-dev tree, if you are
already pulled the tree.
>
>
> Regards
> Tirthendu
More information about the dev
mailing list