]> Gentwo Git Trees - linux/.git/commit
pidfs: reduce wait_pidfd lock scope
authorChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 23:05:01 +0000 (00:05 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 23:09:06 +0000 (00:09 +0100)
commit390d967653e17205f0e519f691b7d6be0a05ff45
tree019224e3704a07b952731c0f6cab0f68e47cf1dd
parenta45ff1c7c9e9447ffca83a9d219c50e9eb8bdaeb
pidfs: reduce wait_pidfd lock scope

There's no need to hold the lock after we realized that pid->attr is
set. We're holding a reference to struct pid so it won't go away and
pidfs_exit() is called once per struct pid.

Link: https://patch.msgid.link/20251105-work-pidfs-wait_pidfd-lock-v1-1-02638783be07@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pidfs.c