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

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.

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


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

end of thread, other threads:[~2025-12-15  7:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-11  8:36 [PATCH 0/3] selftests/futex: fix the issue of abnormal test results caused by thread timing Yuwen Chen
2025-12-11  8:38 ` [PATCH 1/3] selftests/futex: reduce array declarations in the requeue_single Yuwen Chen
2025-12-11  8:38 ` [PATCH 2/3] selftests/futex: use pthread_join to reclaim thread resources Yuwen Chen
2025-12-11  8:38 ` [PATCH 3/3] selftests/futex: fix the issue of abnormal test results caused by thread timing Yuwen Chen
2025-12-12  4:30 ` Licay
2025-12-15  7:50   ` Yuwen Chen

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®