mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
uprobes: Remove redundant spinlock in uprobe_deny_signal()
Since clearing a bit in thread_info is an atomic operation, the spinlock is redundant and can be removed, reducing lock contention is good for performance. Signed-off-by: Liao Chang <liaochang1@huawei.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> Acked-by: Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20250124093826.2123675-2-liaochang1@huawei.com
This commit is contained in:
parent
fa5d0a824e
commit
eae8a56ae0
|
|
@ -2302,9 +2302,7 @@ bool uprobe_deny_signal(void)
|
|||
WARN_ON_ONCE(utask->state != UTASK_SSTEP);
|
||||
|
||||
if (task_sigpending(t)) {
|
||||
spin_lock_irq(&t->sighand->siglock);
|
||||
clear_tsk_thread_flag(t, TIF_SIGPENDING);
|
||||
spin_unlock_irq(&t->sighand->siglock);
|
||||
|
||||
if (__fatal_signal_pending(t) || arch_uprobe_xol_was_trapped(t)) {
|
||||
utask->state = UTASK_SSTEP_TRAPPED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user