diff options
| author | Tiwei Bie <tiwei.btw@antgroup.com> | 2025-07-11 14:50:21 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2025-07-13 19:42:49 +0200 |
| commit | f7e9077a1649877d4b33ce91d58711d393a63c1b (patch) | |
| tree | 792e1b7cd7bb2c70979090c1aaacf9a853c81230 /arch/x86/um | |
| parent | b3fb0eb5c28766e3768f9f5b2968d33da00c4cea (diff) | |
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 <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250711065021.2535362-4-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/x86/um')
| -rw-r--r-- | arch/x86/um/tls_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/tls_32.c b/arch/x86/um/tls_32.c index cb3f17627d16..1909c2e640b2 100644 --- a/arch/x86/um/tls_32.c +++ b/arch/x86/um/tls_32.c @@ -186,7 +186,7 @@ int arch_switch_tls(struct task_struct *to) /* * We have no need whatsoever to switch TLS for kernel threads; beyond * that, that would also result in us calling os_set_thread_area with - * userspace_pid[cpu] == 0, which gives an error. + * task->mm == NULL, which would cause a crash. */ if (likely(to->mm)) return load_TLS(O_FORCE, to); |
