mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02: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:
parent
32750c77e8
commit
efdece1254
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user