lkml.org 
[lkml]   [2015]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3 v3] kernel/fork.c max_thread handling
Date
In fork_init a division by zero may occur. This is addressed in the
first patch.

Furthermore max_threads is checked against FUTEX_TID_MASK._

The calculation of max_threads is moved to a separate function.

The second patch addresses max_threads being set by writing to
/proc/sys/kernel/threads-max. The same limits are applied as
in fork_init.

The third patch uses a callback function to updated max_thread when
a memory hotplug event occurs.

New in version 3:
Determination of max_threads moved to separate function.
Handling of /proc/sys/kernel/threads-max
Handling of memory hotplugging.

Heinrich Schuchardt (3):
kernel/fork.c: avoid division by zero
kernel/sysctl.c: threads-max observe limits
kernel/fork.c: memory hotplug updates max_threads

kernel/fork.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++--------
kernel/sysctl.c | 7 ++--
2 files changed, 100 insertions(+), 19 deletions(-)

--
2.1.4



\
 
 \ /
  Last update: 2015-02-21 23:41    [W:0.090 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site