Re: [PATCH 0/4 v6] max_threadx handling

2015-03-25 Thread Heinrich Schuchardt
Hello Andrew, could you, please, take the following patches into the MM tree: [PATCH 1/4 v6] kernel/fork.c: new function for max_threads https://lkml.org/lkml/2015/3/15/94 [PATCH 2/4 v6] kernel/fork.c: avoid division by zero https://lkml.org/lkml/2015/3/15/92 [PATCH 3/4 v6] kernel/sysctl.c: thr

[PATCH 0/4 v6] max_threadx handling

2015-03-15 Thread Heinrich Schuchardt
In fork_init a division by zero may occur. In the first patch the calculation of max_threads is moved from fork_init to a new separate function. The incorrect calculation of max threads is addressed in the second patch. Furthermore max_threads is checked against FUTEX_TID_MASK. The third patch