Re: [PATCH] selftests: mm: restore settings from only parent process

2024-04-18 Thread Muhammad Usama Anjum
On 4/18/24 5:52 PM, Joey Gouly wrote:> Hi again, > > On Thu, Mar 14, 2024 at 02:40:45PM +0500, Muhammad Usama Anjum wrote: >> The atexit() is called from parent process as well as forked processes. >> Hence the child restores the settings at exit while the parent is still >> executing. Fix this by

Re: [PATCH] selftests: mm: restore settings from only parent process

2024-04-18 Thread Joey Gouly
Hi again, On Thu, Mar 14, 2024 at 02:40:45PM +0500, Muhammad Usama Anjum wrote: > The atexit() is called from parent process as well as forked processes. > Hence the child restores the settings at exit while the parent is still > executing. Fix this by checking pid of atexit() calling process and

[PATCH] selftests: mm: restore settings from only parent process

2024-03-14 Thread Muhammad Usama Anjum
The atexit() is called from parent process as well as forked processes. Hence the child restores the settings at exit while the parent is still executing. Fix this by checking pid of atexit() calling process and only restore THP number from parent process. Fixes: c23ea61726d5 ("selftests/mm: prote