| From c423e382024cea5caf9eb955386cafb2d6b3a8bb Mon Sep 17 00:00:00 2001 |
| From: Masanari Iida <standby24x7@gmail.com> |
| Date: Fri, 1 Nov 2019 13:04:37 +0900 |
| Subject: [PATCH] docs: admin-guide: Fix min value of threads-max in kernel.rst |
| |
| commit 73eb802ad97f814aa86d83cfd1d139cadbb4f0fb upstream. |
| |
| Since following patch was merged 5.4-rc3, minimum value for |
| threads-max changed to 1. |
| |
| kernel/sysctl.c: do not override max_threads provided by userspace |
| b0f53dbc4bc4c371f38b14c391095a3bb8a0bb40 |
| |
| Fixes: b0f53dbc4bc4 ("kernel/sysctl.c: do not override max_threads provided by userspace") |
| Signed-off-by: Masanari Iida <standby24x7@gmail.com> |
| Acked-by: Michal Hocko <mhocko@suse.com> |
| Signed-off-by: Jonathan Corbet <corbet@lwn.net> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt |
| index f0c86fbb3b48..f8681ea45b97 100644 |
| --- a/Documentation/sysctl/kernel.txt |
| +++ b/Documentation/sysctl/kernel.txt |
| @@ -1070,7 +1070,7 @@ During initialization the kernel sets this value such that even if the |
| maximum number of threads is created, the thread structures occupy only |
| a part (1/8th) of the available RAM pages. |
| |
| -The minimum value that can be written to threads-max is 20. |
| +The minimum value that can be written to threads-max is 1. |
| The maximum value that can be written to threads-max is given by the |
| constant FUTEX_TID_MASK (0x3fffffff). |
| If a value outside of this range is written to threads-max an error |
| -- |
| 2.7.4 |
| |