OSDN Git Service

kselftests: cgroup: don't fail on cg_kill_all() error in cg_destroy()
authorRoman Gushchin <guro@fb.com>
Fri, 19 Apr 2019 17:03:05 +0000 (10:03 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 19 Apr 2019 18:26:49 +0000 (11:26 -0700)
commitff9fb7cb515b32ac8d479b086c7c8c565d6905fb
treebb6b90abd92d808f0532137a6abc04a57cab4a66
parent76f969e8948d82e78e1bc4beb6b9465908e74873
kselftests: cgroup: don't fail on cg_kill_all() error in cg_destroy()

If the cgroup destruction races with an exit() of a belonging
process(es), cg_kill_all() may fail. It's not a good reason to make
cg_destroy() fail and leave the cgroup in place, potentially causing
next test runs to fail.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: kernel-team@fb.com
Cc: linux-kselftest@vger.kernel.org
tools/testing/selftests/cgroup/cgroup_util.c