mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:00:52 +07:00
[PATCH] little de_thread() cleanup
Trivial, saves one 'if' branch in de_thread(). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
833d304b22
commit
9e4e23bccb
@ -630,10 +630,9 @@ static inline int de_thread(struct task_struct *tsk)
|
||||
/*
|
||||
* Account for the thread group leader hanging around:
|
||||
*/
|
||||
count = 2;
|
||||
if (thread_group_leader(current))
|
||||
count = 1;
|
||||
else {
|
||||
count = 1;
|
||||
if (!thread_group_leader(current)) {
|
||||
count = 2;
|
||||
/*
|
||||
* The SIGALRM timer survives the exec, but needs to point
|
||||
* at us as the new group leader now. We have a race with
|
||||
|
Loading…
Reference in New Issue
Block a user