mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] selftests/futex: fix the issue of abnormal test results caused by thread timing
@ 2025-12-12  3:21 Yuwen Chen
  2025-12-12  3:24 ` [PATCH v2 1/5] selftests/futex: reduce array declarations in the requeue_single Yuwen Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Yuwen Chen @ 2025-12-12  3:21 UTC (permalink / raw)
  To: tglx, mingo
  Cc: peterz, dvhart, dave, andrealmeid, justinstitt, kernel-team,
	linux-kernel, linux-kselftest, luto, morbo, nathan, ndesaulniers,
	shuah, bigeasy, usama.anjum, colin.i.king

On the Android arm32 platform, when performing the futex_requeue test, it will
most likely return a failure. The specific reason is detailed in a commit[1]
previously submitted by Edward Liaw. However, this commit cannot perfectly
solve the problem. This is because using a barrier does not guarantee that
the child thread will wait on futex_wait.

This series of patches attempts to solve this problem by checking whether
the child thread is in a sleeping state. This is because when the child thread
goes to sleep, it indicates that it is waiting for the futex lock.

v1->v2:
    - Solve the compilation problems found by the kernel test robot
    - Cleanup the atomic library code for futex test

Link: https://lore.kernel.org/all/20240918231102.234253-1-edliaw@google.com/


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-12-16  9:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-12  3:21 [PATCH v2 0/5] selftests/futex: fix the issue of abnormal test results caused by thread timing Yuwen Chen
2025-12-12  3:24 ` [PATCH v2 1/5] selftests/futex: reduce array declarations in the requeue_single Yuwen Chen
2025-12-16  8:38   ` Licay
2025-12-12  3:24 ` [PATCH v2 2/5] selftests/futex: use pthread_join to reclaim thread resources Yuwen Chen
2025-12-16  9:04   ` Licay
2025-12-12  3:25 ` [PATCH v2 3/5] selftests/futex: read atomic variable value with atomic_read Yuwen Chen
2025-12-16  9:14   ` Licay
2025-12-12  3:25 ` [PATCH v2 4/5] selftests/futex: introduce the declaration of atomic_t from types.h Yuwen Chen
2025-12-16  9:17   ` Licay
2025-12-12  3:25 ` [PATCH v2 5/5] selftests/futex: fix the issue of abnormal test results caused by thread timing Yuwen Chen
2025-12-16  9:19   ` Licay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®