]> www.infradead.org Git - users/dwmw2/linux.git/commit
Revert "selftests/mm: replace atomic_bool with pthread_barrier_t"
authorEdward Liaw <edliaw@google.com>
Fri, 18 Oct 2024 17:17:23 +0000 (17:17 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 29 Oct 2024 04:40:41 +0000 (21:40 -0700)
commit3673167a3a07f25b3f06754d69f406edea65543a
tree336ba86a0165e555374aa4d59032e7cfe738c83d
parent5bb1f4c9340e01003b00b94d539eadb0da88f48e
Revert "selftests/mm: replace atomic_bool with pthread_barrier_t"

This reverts commit e61ef21e27e8deed8c474e9f47f4aa7bc37e138c.

uffd_poll_thread may be called by other tests that do not initialize the
pthread_barrier, so this approach is not correct.  This will revert to
using atomic_bool instead.

Link: https://lkml.kernel.org/r/20241018171734.2315053-3-edliaw@google.com
Fixes: e61ef21e27e8 ("selftests/mm: replace atomic_bool with pthread_barrier_t")
Signed-off-by: Edward Liaw <edliaw@google.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-common.c
tools/testing/selftests/mm/uffd-common.h
tools/testing/selftests/mm/uffd-unit-tests.c