mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user