Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118023
b: refs/heads/master
c: 7ccb974
h: refs/heads/master
i:
  118021: ba2a7e8
  118019: e6b43ab
  118015: c3f2c6a
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Oct 30, 2008
1 parent bdf3c88 commit e02d66d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: df8bc08c192f00f155185bfd6f052d46a728814a
refs/heads/master: 7ccb97437bcc818d0ba6067513475f6ee8177a15
3 changes: 2 additions & 1 deletion trunk/kernel/cgroup_freezer.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ static void freezer_fork(struct cgroup_subsys *ss, struct task_struct *task)
freezer = task_freezer(task);
task_unlock(task);

BUG_ON(freezer->state == CGROUP_FROZEN);
spin_lock_irq(&freezer->lock);
BUG_ON(freezer->state == CGROUP_FROZEN);

/* Locking avoids race with FREEZING -> THAWED transitions. */
if (freezer->state == CGROUP_FREEZING)
freeze_task(task, true);
Expand Down

0 comments on commit e02d66d

Please sign in to comment.