mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
signals: do_signal_stop(): use signal_group_exit()
do_signal_stop() needs signal_group_exit() but checks sig->group_exit_task. This (optimization) is correct, SIGNAL_STOP_DEQUEUED and SIGNAL_GROUP_EXIT are mutually exclusive, but looks confusing. Use signal_group_exit(), this is not fastpath, the code clarity is more important. Signed-off-by: Oleg Nesterov <[email protected]> Cc: Roland McGrath <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2acb024d55
commit
573cf9ad72
1 changed files with 1 additions and 1 deletions
|
|
@ -1717,7 +1717,7 @@ static int do_signal_stop(int signr)
|
|||
struct task_struct *t;
|
||||
|
||||
if (!likely(sig->flags & SIGNAL_STOP_DEQUEUED) ||
|
||||
unlikely(sig->group_exit_task))
|
||||
unlikely(signal_group_exit(sig)))
|
||||
return 0;
|
||||
/*
|
||||
* There is no group stop already in progress.
|
||||
|
|
|
|||
Loading…
Reference in a new issue