diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 1d1cd06edbc1..7eefe338d7a2 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -902,10 +902,9 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node) | |||
902 | if (orig->cpus_ptr == &orig->cpus_mask) | 902 | if (orig->cpus_ptr == &orig->cpus_mask) |
903 | tsk->cpus_ptr = &tsk->cpus_mask; | 903 | tsk->cpus_ptr = &tsk->cpus_mask; |
904 | 904 | ||
905 | /* | 905 | /* One for the user space visible state that goes away when reaped. */ |
906 | * One for us, one for whoever does the "release_task()" (usually | 906 | refcount_set(&tsk->rcu_users, 1); |
907 | * parent) | 907 | /* One for the rcu users, and one for the scheduler */ |
908 | */ | ||
909 | refcount_set(&tsk->usage, 2); | 908 | refcount_set(&tsk->usage, 2); |
910 | #ifdef CONFIG_BLK_DEV_IO_TRACE | 909 | #ifdef CONFIG_BLK_DEV_IO_TRACE |
911 | tsk->btrace_seq = 0; | 910 | tsk->btrace_seq = 0; |