cgroup/cpuset: Add test_cpuset_v1_hp.sh
authorWaiman Long <longman@redhat.com>
Thu, 4 Apr 2024 13:47:49 +0000 (09:47 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 8 Apr 2024 17:39:38 +0000 (07:39 -1000)
commit812c5945bdb8fbdc7420e3467d005bac04e6fcf6
treeb320fd74b8948b5f48c75c1b17cdc6cb385a8bfd
parent2125c0034c5dfd61171b494bd309bb7637bff6eb
cgroup/cpuset: Add test_cpuset_v1_hp.sh

Add a simple test to verify that an empty v1 cpuset will force its tasks
to be moved to an ancestor node. It is based on the test case documented
in commit 76bb5ab8f6e3 ("cpuset: break kernfs active protection in
cpuset_write_resmask()").

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/Makefile
tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh [new file with mode: 0755]