projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c20b0f
)
fork: remove redundant TASK_UNINTERRUPTIBLE
author
Kevin Hao
<haokexin@gmail.com>
Fri, 8 Dec 2023 08:41:15 +0000
(16:41 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 20 Dec 2023 23:02:58 +0000
(15:02 -0800)
TASK_KILLABLE already includes TASK_UNINTERRUPTIBLE, so there is no
need to add a separate TASK_UNINTERRUPTIBLE.
Link:
https://lkml.kernel.org/r/20231208084115.1973285-1-haokexin@gmail.com
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index ce8a4b8c04e22214c0aba1d0cb27a8c3f8d5725a..d71c8ade8f9c25905346d5d8c282fbeb17870e24 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-1562,7
+1562,7
@@
static void complete_vfork_done(struct task_struct *tsk)
static int wait_for_vfork_done(struct task_struct *child,
struct completion *vfork)
{
- unsigned int state = TASK_
UNINTERRUPTIBLE|TASK_
KILLABLE|TASK_FREEZABLE;
+ unsigned int state = TASK_KILLABLE|TASK_FREEZABLE;
int killed;
cgroup_enter_frozen();