summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-26 15:44:31 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-26 15:47:41 +0200
commit7253a6ff640df85fdccabe7e3dd38cce38e0a7b4 (patch)
tree60fa065adbaa1f137979546110d48d9fbd305e53 /tools/perf/scripts/python/stackcollapse.py
parent57088a37b2e4d194a2ae5027134b780a36acd900 (diff)
downloadlinux-next-7253a6ff640df85fdccabe7e3dd38cce38e0a7b4.tar.gz
linux-next-7253a6ff640df85fdccabe7e3dd38cce38e0a7b4.zip
namespace: drop the file's reference first in dissolve_on_fput()
A detached mount tree is held alive by a file. dissolve_on_fput() unmounts the detached tree attached to that file. Currently dissolve_on_fput() leaves the file's reference to the root of the tree to the caller. So either __fput(), open_detached_copy(), or fsmount() drop the mount. That's backwards. The reference keeps the tree around and is dropped when the tree is already gone. Instead, let dissolve_on_fput() the mount and drop it after umount_tree() with namespace_sem still held. After umount_tree() the mntput() is never the last reference and so the root gets unmounted before its children. Link: https://patch.msgid.link/20260926-work-mount-fixes-2-v1-8-f357abf3d17b@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions