All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] threads: Update PID limit comment according to futex UAPI change
@ 2020-03-02 11:29 Jann Horn
  2020-03-03 10:25 ` Peter Zijlstra
  2020-03-21 16:50 ` [tip: sched/core] " tip-bot2 for Jann Horn
  0 siblings, 2 replies; 6+ messages in thread
From: Jann Horn @ 2020-03-02 11:29 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar
  Cc: Andrew Morton, Peter Zijlstra, Darren Hart, linux-kernel

The futex UAPI changed back in commit 76b81e2b0e22 ("[PATCH] lightweight
robust futexes updates 2"), which landed in v2.6.17: FUTEX_TID_MASK is now
0x3fffffff instead of 0x1fffffff. Update the corresponding comment in
include/linux/threads.h.

Signed-off-by: Jann Horn <jannh@google.com>
---
 include/linux/threads.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/threads.h b/include/linux/threads.h
index 3086dba525e20..18d5a74bcc3dd 100644
--- a/include/linux/threads.h
+++ b/include/linux/threads.h
@@ -29,7 +29,7 @@
 
 /*
  * A maximum of 4 million PIDs should be enough for a while.
- * [NOTE: PID/TIDs are limited to 2^29 ~= 500+ million, see futex.h.]
+ * [NOTE: PID/TIDs are limited to 2^30 ~= 1 billion, see FUTEX_TID_MASK.]
  */
 #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
 	(sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
-- 
2.25.0.265.gbab2e86ba0-goog


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

end of thread, other threads:[~2023-05-11 13:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02 11:29 [PATCH] threads: Update PID limit comment according to futex UAPI change Jann Horn
2020-03-03 10:25 ` Peter Zijlstra
2020-03-03 14:12   ` Thomas Gleixner
2023-05-11 12:47     ` Thomas Gleixner
2023-05-11 13:26       ` Thomas Gleixner
2020-03-21 16:50 ` [tip: sched/core] " tip-bot2 for Jann Horn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.