diff options
author | Muhammad Usama Anjum <[email protected]> | 2024-03-14 14:40:45 +0500 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-03-26 11:07:21 -0700 |
commit | c52eb6db7b7dd8b4b338b16c5c37df22a6b08fdf (patch) | |
tree | 22b2a6f46f6942e3ae0c514bf89d4e0148656e7f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 950bf45d3bbfdb373772ed4d32b5f90e8532fcce (diff) |
selftests: mm: restore settings from only parent process
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.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: c23ea61726d5 ("selftests/mm: protection_keys: save/restore nr_hugepages settings")
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Tested-by: Joey Gouly <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions