diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 60763c043aa3..f9572f416126 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -915,10 +915,12 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node) | |||
915 | tsk->cpus_ptr = &tsk->cpus_mask; | 915 | tsk->cpus_ptr = &tsk->cpus_mask; |
916 | 916 | ||
917 | /* | 917 | /* |
918 | * One for us, one for whoever does the "release_task()" (usually | 918 | * One for the user space visible state that goes away when reaped. |
919 | * parent) | 919 | * One for the scheduler. |
920 | */ | 920 | */ |
921 | refcount_set(&tsk->usage, 2); | 921 | refcount_set(&tsk->rcu_users, 2); |
922 | /* One for the rcu users */ | ||
923 | refcount_set(&tsk->usage, 1); | ||
922 | #ifdef CONFIG_BLK_DEV_IO_TRACE | 924 | #ifdef CONFIG_BLK_DEV_IO_TRACE |
923 | tsk->btrace_seq = 0; | 925 | tsk->btrace_seq = 0; |
924 | #endif | 926 | #endif |