aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2018-06-27 19:39:54 +0000
committerEric W. Biederman <[email protected]>2020-02-28 17:34:47 +0000
commitaf1abab986b85fdeb3e98c037988cfa4bf9d4018 (patch)
tree4200342998a3e6f2052c6b67c6921ba8348c4f00 /fs/proc/root.c
parentproc: Dentry flushing without proc_mnt (diff)
downloadkernel-af1abab986b85fdeb3e98c037988cfa4bf9d4018.tar.gz
kernel-af1abab986b85fdeb3e98c037988cfa4bf9d4018.zip
uml: Don't consult current to find the proc_mnt in mconsole_proc
Inspection of the control flow reveals that mconsole_proc is either called from mconsole_stop called from mc_work_proc or from mc_work_proc directly. The function mc_work_proc is dispatched to a kernel thread with schedule_work. All of the threads that run dispatched by schedule_work are in the init pid namespace. So make the code clearer and by using init_pid_ns instead of task_active_pid_ns(current). Cc: Jeff Dike <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Anton Ivanov <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'fs/proc/root.c')
0 files changed, 0 insertions, 0 deletions