diff options
| author | 2023-12-08 16:41:15 +0800 | |
|---|---|---|
| committer | 2023-12-20 15:02:58 -0800 | |
| commit | a903904c5fa06e8d8472509741f79e8eb25ff864 (patch) | |
| tree | 17b864246044096e1ff05ff7eb58afa6168fa64d /kernel/fork.c | |
| parent | nilfs2: switch WARN_ONs to warning output in nilfs_sufile_do_free() (diff) | |
| download | wireguard-linux-a903904c5fa06e8d8472509741f79e8eb25ff864.tar.xz wireguard-linux-a903904c5fa06e8d8472509741f79e8eb25ff864.zip | |
fork: remove redundant TASK_UNINTERRUPTIBLE
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>
Diffstat (limited to 'kernel/fork.c')
| -rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index ce8a4b8c04e2..d71c8ade8f9c 100644 --- 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(); |
