Commit ff8288ff authored by Eric W. Biederman's avatar Eric W. Biederman

fork: Rename bad_fork_cleanup_threadgroup_lock to bad_fork_cleanup_delayacct

I just fixed a bug in copy_process when using the label
bad_fork_cleanup_threadgroup_lock.  While fixing the bug I looked
closer at the label and realized it has been misnamed since
568ac888 ("cgroup: reduce read locked section of
cgroup_threadgroup_rwsem during fork").

Fix the name so that fork is easier to understand.
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 6692c98c
...@@ -2120,14 +2120,14 @@ static __latent_entropy struct task_struct *copy_process( ...@@ -2120,14 +2120,14 @@ static __latent_entropy struct task_struct *copy_process(
cgroup_fork(p); cgroup_fork(p);
if (p->flags & PF_KTHREAD) { if (p->flags & PF_KTHREAD) {
if (!set_kthread_struct(p)) if (!set_kthread_struct(p))
goto bad_fork_cleanup_threadgroup_lock; goto bad_fork_cleanup_delayacct;
} }
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
p->mempolicy = mpol_dup(p->mempolicy); p->mempolicy = mpol_dup(p->mempolicy);
if (IS_ERR(p->mempolicy)) { if (IS_ERR(p->mempolicy)) {
retval = PTR_ERR(p->mempolicy); retval = PTR_ERR(p->mempolicy);
p->mempolicy = NULL; p->mempolicy = NULL;
goto bad_fork_cleanup_threadgroup_lock; goto bad_fork_cleanup_delayacct;
} }
#endif #endif
#ifdef CONFIG_CPUSETS #ifdef CONFIG_CPUSETS
...@@ -2465,7 +2465,7 @@ static __latent_entropy struct task_struct *copy_process( ...@@ -2465,7 +2465,7 @@ static __latent_entropy struct task_struct *copy_process(
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
mpol_put(p->mempolicy); mpol_put(p->mempolicy);
#endif #endif
bad_fork_cleanup_threadgroup_lock: bad_fork_cleanup_delayacct:
delayacct_tsk_free(p); delayacct_tsk_free(p);
bad_fork_cleanup_count: bad_fork_cleanup_count:
dec_rlimit_ucounts(task_ucounts(p), UCOUNT_RLIMIT_NPROC, 1); dec_rlimit_ucounts(task_ucounts(p), UCOUNT_RLIMIT_NPROC, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment