summaryrefslogtreecommitdiff
path: root/include/linux/threads.h
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2020-03-02 14:29:39 +0300
committerThomas Gleixner <tglx@linutronix.de>2020-03-21 19:48:13 +0300
commit9c40365a65d62d7c06a95fb331b3442cb02d2fd9 (patch)
tree29cc1286beea148e2930e75775b9a71ba8e85ad7 /include/linux/threads.h
parent6c8116c914b65be5e4d6f66d69c8142eb0648c22 (diff)
downloadlinux-9c40365a65d62d7c06a95fb331b3442cb02d2fd9.tar.xz
threads: Update PID limit comment according to futex UAPI change
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. Documentation mentions that only the lower 29 bits are available for TID storage, but as the UAPI header released the bit already via FUTEX_TID_MASK, this is moot as well. Fix it up. [ tglx: Fixed up documentation ] Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200302112939.8068-1-jannh@google.com
Diffstat (limited to 'include/linux/threads.h')
-rw-r--r--include/linux/threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/threads.h b/include/linux/threads.h
index 3086dba525e2..18d5a74bcc3d 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))