Re: [RFC][PATCH 07/10] futex: Implement FUTEX2_NUMA

From
Peter Zijlstra <peterz@infradead.org>
Date
2023-07-14 15:22:48
Also in
linux-arch, linux-mm, lkml
Reply to
Peter Zijlstra, 2023-07-14
On Fri, Jul 14, 2023 at 03:39:06PM +0200, Peter Zijlstra wrote:
quoted hunk ↗ jump to hunk
+	/*
+	 * Encode the futex size in the offset. This makes cross-size
+	 * wake-wait fail -- see futex_match().
+	 *
+	 * NOTE that cross-size wake-wait is fundamentally broken wrt
+	 * FLAGS_NUMA but could possibly work for !NUMA.
+	 */
+	key->both.offset |= FUT_OFF_SIZE * (flags & FLAGS_SIZE_MASK);
this wee bit should've gone in patch 9.
Thread (19 messages) 19 messages, 3 authors, last reply 2023-07-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help