[PATCH v4 0/2] fix race in rte_thread_create failure path
Tyler Retzlaff
roretzla at linux.microsoft.com
Tue Mar 14 23:50:37 CET 2023
v4:
* style fixes reported by CI
v3:
* don't free wrapper context from new thread now that wrapper
completion is complete before returning from creating thread.
v2:
* new approach over v1 of the patch to avoid using pthread np API that
is not available on Alpine Linux.
* to conform to rte_thread_create parameter const qualification include
an additional patch to const qualify rte_thread_set_affinity cpusetp
parameter.
Tyler Retzlaff (2):
eal: make cpusetp to rte thread set affinity const
eal: fix failure path race setting new thread affinity
lib/eal/common/eal_common_thread.c | 6 ++---
lib/eal/include/rte_thread.h | 2 +-
lib/eal/unix/rte_thread.c | 51 ++++++++++++++++++++++++++++++--------
3 files changed, 44 insertions(+), 15 deletions(-)
--
1.8.3.1
More information about the dev
mailing list