]> Gentwo Git Trees - linux/.git/commit
selftests/namespace: second threaded active reference count test
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Oct 2025 12:21:21 +0000 (13:21 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 16:41:24 +0000 (17:41 +0100)
commitee861032381b6bf9188a84891ae7c31396e5dd2a
tree7eb4a3871e67238b2a8869c66f081fdc57915510
parent29f083c499821663c2a0863fd2b9c06883c2b19d
selftests/namespace: second threaded active reference count test

Test that a namespace remains active while a thread holds an fd to it.
Even after the thread exits, the namespace should remain active as long
as another thread holds a file descriptor to it.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-68-2e6f823ebdc0@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/namespaces/ns_active_ref_test.c