mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
kill_pid_info: don't take now unneeded tasklist_lock
Previously handle_stop_signal(SIGCONT) could drop ->siglock. That is why kill_pid_info(SIGCONT) takes tasklist_lock to make sure the target task can't go away after unlock. Not needed now. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Roland McGrath <[email protected]> Cc: Jiri Kosina <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e442055193
commit
6ca25b5513
2 changed files with 1 additions and 8 deletions
|
|
@ -362,8 +362,6 @@ int unhandled_signal(struct task_struct *tsk, int sig);
|
|||
#define sig_kernel_stop(sig) \
|
||||
(((sig) < SIGRTMIN) && siginmask(sig, SIG_KERNEL_STOP_MASK))
|
||||
|
||||
#define sig_needs_tasklist(sig) ((sig) == SIGCONT)
|
||||
|
||||
#define sig_user_defined(t, signr) \
|
||||
(((t)->sighand->action[(signr)-1].sa.sa_handler != SIG_DFL) && \
|
||||
((t)->sighand->action[(signr)-1].sa.sa_handler != SIG_IGN))
|
||||
|
|
|
|||
Loading…
Reference in a new issue