diff options
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 3ea63da11d71..d9349cc48b95 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -1821,15 +1821,13 @@ void cpuset_fork(struct task_struct *child) | |||
1821 | * | 1821 | * |
1822 | * We don't need to task_lock() this reference to tsk->cpuset, | 1822 | * We don't need to task_lock() this reference to tsk->cpuset, |
1823 | * because tsk is already marked PF_EXITING, so attach_task() won't | 1823 | * because tsk is already marked PF_EXITING, so attach_task() won't |
1824 | * mess with it. | 1824 | * mess with it, or task is a failed fork, never visible to attach_task. |
1825 | **/ | 1825 | **/ |
1826 | 1826 | ||
1827 | void cpuset_exit(struct task_struct *tsk) | 1827 | void cpuset_exit(struct task_struct *tsk) |
1828 | { | 1828 | { |
1829 | struct cpuset *cs; | 1829 | struct cpuset *cs; |
1830 | 1830 | ||
1831 | BUG_ON(!(tsk->flags & PF_EXITING)); | ||
1832 | |||
1833 | cs = tsk->cpuset; | 1831 | cs = tsk->cpuset; |
1834 | tsk->cpuset = NULL; | 1832 | tsk->cpuset = NULL; |
1835 | 1833 | ||