fs: stop rewriting kthread fs structs

Now that we isolated kthreads filesystem state completely from userspace
stop rewriting their state.

Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-24-77ee053060e0@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner
2026-06-01 15:56:57 +02:00
parent 32750c77e8
commit efdece1254

View File

@@ -61,6 +61,10 @@ void chroot_fs_refs(const struct path *old_root, const struct path *new_root)
read_lock(&tasklist_lock);
for_each_process_thread(g, p) {
/* leave kthreads alone */
if (p->flags & PF_KTHREAD)
continue;
task_lock(p);
fs = p->real_fs;
if (fs) {