Re: [PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-09 Thread David Marchand
On Thu, Mar 9, 2023 at 9:49 PM Tyler Retzlaff wrote: > > On Thu, Mar 09, 2023 at 10:58:06AM +0100, Thomas Monjalon wrote: > > 09/03/2023 10:17, David Marchand: > > > On Tue, Mar 7, 2023 at 3:33 PM David Marchand > > > wrote: > > > > On Thu, Mar 2, 2023 at 7:44 PM Tyler Retzlaff > > > > wrote: >

Re: [PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-09 Thread Tyler Retzlaff
On Thu, Mar 09, 2023 at 10:58:06AM +0100, Thomas Monjalon wrote: > 09/03/2023 10:17, David Marchand: > > On Tue, Mar 7, 2023 at 3:33 PM David Marchand > > wrote: > > > On Thu, Mar 2, 2023 at 7:44 PM Tyler Retzlaff > > > wrote: > > > > > > > > In rte_thread_create setting affinity after pthread_c

Re: [PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-09 Thread Thomas Monjalon
09/03/2023 10:17, David Marchand: > On Tue, Mar 7, 2023 at 3:33 PM David Marchand > wrote: > > On Thu, Mar 2, 2023 at 7:44 PM Tyler Retzlaff > > wrote: > > > > > > In rte_thread_create setting affinity after pthread_create may fail. > > > Such a failure should result in the entire rte_thread_cre

Re: [PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-09 Thread David Marchand
On Tue, Mar 7, 2023 at 3:33 PM David Marchand wrote: > On Thu, Mar 2, 2023 at 7:44 PM Tyler Retzlaff > wrote: > > > > In rte_thread_create setting affinity after pthread_create may fail. > > Such a failure should result in the entire rte_thread_create failing > > but doesn't. > > > > Additionally

Re: [PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-07 Thread David Marchand
On Thu, Mar 2, 2023 at 7:44 PM Tyler Retzlaff wrote: > > In rte_thread_create setting affinity after pthread_create may fail. > Such a failure should result in the entire rte_thread_create failing > but doesn't. > > Additionally if there is a failure to set affinity a race exists where > the creat

[PATCH 1/2] eal: fix failure race and behavior of thread create

2023-03-02 Thread Tyler Retzlaff
In rte_thread_create setting affinity after pthread_create may fail. Such a failure should result in the entire rte_thread_create failing but doesn't. Additionally if there is a failure to set affinity a race exists where the creating thread will free ctx and depending on scheduling of the new thr