mirror-linux/include/linux/sched
Oleg Nesterov b454ec2922 kernel/signal.c: simplify force_sig_info_to_task(), kill recalc_sigpending_and_wake()
The purpose of recalc_sigpending_and_wake() is not clear, it looks
"obviously unneeded" because we are going to send the signal which can't
be blocked or ignored.

Add the comment to explain why we can't rely on send_signal_locked() and
make this logic more simple/explicit.  recalc_sigpending_and_wake() has no
other users, it can die.

In fact I think we don't even need signal_wake_up(), the target task must
be either current or a TASK_TRACED child, otherwise the usage of siglock
is not safe.  But this needs another change.

Link: https://lkml.kernel.org/r/20231120151649.GA15995@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-12-10 17:21:32 -08:00
..
affinity.h
autogroup.h
clock.h
cond_resched.h
coredump.h mm/ksm: support fork/exec for prctl 2023-10-16 15:44:38 -07:00
cpufreq.h
cputime.h
deadline.h
debug.h
hotplug.h
idle.h
init.h
isolation.h
jobctl.h
loadavg.h
mm.h mm: kmem: scoped objcg protection 2023-10-25 16:47:11 -07:00
nohz.h
numa_balancing.h Many singleton patches against the MM code. The patch series which are 2023-11-02 19:38:47 -10:00
posix-timers.h
prio.h
rseq_api.h
rt.h
sd_flags.h sched: Add cpus_share_resources API 2023-10-24 10:38:42 +02:00
signal.h kernel/signal.c: simplify force_sig_info_to_task(), kill recalc_sigpending_and_wake() 2023-12-10 17:21:32 -08:00
smt.h
stat.h
sysctl.h
task.h
task_flags.h
task_stack.h
thread_info_api.h
topology.h sched/fair: Remove SIS_PROP 2023-10-24 10:38:44 +02:00
types.h
user.h
vhost_task.h
wake_q.h
xacct.h