From f7e9077a1649877d4b33ce91d58711d393a63c1b Mon Sep 17 00:00:00 2001 From: Tiwei Bie Date: Fri, 11 Jul 2025 14:50:21 +0800 Subject: um: Stop tracking stub's PID via userspace_pid[] The PID of the stub process can be obtained from current_mm_id(). There is no need to track it via userspace_pid[]. Stop doing that to simplify the code. Signed-off-by: Tiwei Bie Link: https://patch.msgid.link/20250711065021.2535362-4-tiwei.bie@linux.dev Signed-off-by: Johannes Berg --- arch/um/kernel/exec.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/um/kernel/exec.c') diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index cb8b5cd9285c..13812fa97eee 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -26,8 +26,6 @@ void flush_thread(void) get_safe_registers(current_pt_regs()->regs.gp, current_pt_regs()->regs.fp); - - __switch_mm(¤t->mm->context.id); } void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp) -- cgit v1.2.3