Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54623
b: refs/heads/master
c: dd9037a
h: refs/heads/master
i:
  54621: 275e39a
  54619: 69d4d4a
  54615: 69a6b24
  54607: 819631e
  54591: 6aa9cac
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Linus Torvalds committed May 8, 2007
1 parent 7007f08 commit 7968207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5f00f42f35e6f4699f105a3bd56874847cbf72f
refs/heads/master: dd9037a26a1e6ebec9121b4681c414dc77189a90
6 changes: 2 additions & 4 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,10 +2200,6 @@ void cpuset_fork(struct task_struct *child)
* it is holding that mutex while calling check_for_release(),
* which calls kmalloc(), so can't be called holding callback_mutex().
*
* We don't need to task_lock() this reference to tsk->cpuset,
* because tsk is already marked PF_EXITING, so attach_task() won't
* mess with it, or task is a failed fork, never visible to attach_task.
*
* the_top_cpuset_hack:
*
* Set the exiting tasks cpuset to the root cpuset (top_cpuset).
Expand Down Expand Up @@ -2242,8 +2238,10 @@ void cpuset_exit(struct task_struct *tsk)
{
struct cpuset *cs;

task_lock(current);
cs = tsk->cpuset;
tsk->cpuset = &top_cpuset; /* the_top_cpuset_hack - see above */
task_unlock(current);

if (notify_on_release(cs)) {
char *pathbuf = NULL;
Expand Down

0 comments on commit 7968207

Please sign in to comment.