tests/cgroup: test cgroup.kill
Test that the new cgroup.kill feature works as intended.
Link: https://lore.kernel.org/r/20210503143922.3093755-5-brauner@kernel.org
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: cgroups@vger.kernel.org
Acked-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
---
/* v2 */
- Christian Brauner <christian.brauner@ubuntu.com>:
- Remove debug logging (It wasn't very helpful in the first place.).
/* v3 */
- Shakeel Butt <shakeelb@google.com>:
- Remove misplaced second cgroup.kill since it is immediately followed
by a cg_kill_wait() call.
- Christian Brauner <christian.brauner@ubuntu.com>:
- Move check for unpopulated == 0 after all killed processes have been
reaped to avoid spurious failures when running test_kill in loops
(e.g. during stress test).
3 files changed