aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2025-04-04 16:42:32 +0000
committerAndrew Morton <[email protected]>2025-04-12 00:32:37 +0000
commit9c02223e2d9df5cb37c51aedb78f3960294e09b5 (patch)
tree7674ed801f3e1d787f72ac475799903c8867c06e /drivers/fpga/tests/fpga-mgr-test.c
parentMAINTAINERS: add Andrew and Baoquan as kexec maintainers (diff)
downloadkernel-9c02223e2d9df5cb37c51aedb78f3960294e09b5.tar.gz
kernel-9c02223e2d9df5cb37c51aedb78f3960294e09b5.zip
selftests/mm: generate a temporary mountpoint for cgroup filesystem
Currently if the filesystem for the cgroups version it wants to use is not mounted charge_reserved_hugetlb.sh and hugetlb_reparenting_test.sh tests will attempt to mount it on the hard coded path /dev/cgroup/memory, deleting that directory when the test finishes. This will fail if there is not a preexisting directory at that path, and since the directory is deleted subsequent runs of the test will fail. Instead of relying on this hard coded directory name use mktemp to generate a temporary directory to use as a mountpoint, fixing both the assumption and the disruption caused by deleting a preexisting directory. This means that if the relevant cgroup filesystem is not already mounted then we rely on having coreutils (which provides mktemp) installed. I suspect that many current users are relying on having things automounted by default, and given that the script relies on bash it's probably not an unreasonable requirement. Link: https://lkml.kernel.org/r/20250404-kselftest-mm-cgroup2-detection-v1-1-3dba6d32ba8c@kernel.org Fixes: 209376ed2a84 ("selftests/vm: make charge_reserved_hugetlb.sh work with existing cgroup setting") Signed-off-by: Mark Brown <[email protected]> Cc: Aishwarya TCV <[email protected]> Cc: Mark Brown <[email protected]> Cc: Mina Almasry <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Waiman Long <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions