Re: [PATCH 0/2] selftests/mm: fix deadlock after pthread_create

2024-10-04 Thread Andrew Morton
On Thu, 3 Oct 2024 21:17:09 + Edward Liaw wrote: > On Android arm, pthread_create followed by a fork caused a deadlock in > the case where the fork required work to be completed by the created > thread. > > Updated the synchronization primitive to use pthread_barrier instead of > atomic_boo

[PATCH 0/2] selftests/mm: fix deadlock after pthread_create

2024-10-03 Thread Edward Liaw
On Android arm, pthread_create followed by a fork caused a deadlock in the case where the fork required work to be completed by the created thread. Updated the synchronization primitive to use pthread_barrier instead of atomic_bool. Applied the same fix to the wp-fork-with-event test. Edward Lia