Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kevin Hao and committed by
Andrew Morton
a903904c 2c20b0f2

+1 -1
+1 -1
kernel/fork.c
··· 1562 1562 static int wait_for_vfork_done(struct task_struct *child, 1563 1563 struct completion *vfork) 1564 1564 { 1565 - unsigned int state = TASK_UNINTERRUPTIBLE|TASK_KILLABLE|TASK_FREEZABLE; 1565 + unsigned int state = TASK_KILLABLE|TASK_FREEZABLE; 1566 1566 int killed; 1567 1567 1568 1568 cgroup_enter_frozen();