Files
ack-tegra/include/linux
Tejun Heo 22b4e111fa cgroup_freezer: prepare for removal of TIF_FREEZE
TIF_FREEZE will be removed soon and freezing() will directly test
whether any freezing condition is in effect.  Make the following
changes in preparation.

* Rename cgroup_freezing_or_frozen() to cgroup_freezing() and make it
  return bool.

* Make cgroup_freezing() access task_freezer() under rcu read lock
  instead of task_lock().  This makes the state dereferencing racy
  against task moving to another cgroup; however, it was already racy
  without this change as ->state dereference wasn't synchronized.
  This will be later dealt with using attach hooks.

* freezer->state is now set before trying to push tasks into the
  target state.

-v2: Oleg pointed out that freeze_change_state() was setting
     freeze->state incorrectly to CGROUP_FROZEN instead of
     CGROUP_FREEZING.  Fixed.

-v3: Matt pointed out that setting CGROUP_FROZEN used to always invoke
     try_to_freeze_cgroup() regardless of the current state.  Patch
     updated such that the actual freeze/thaw operations are always
     performed on invocation.  This shouldn't make any difference
     unless something is broken.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Paul Menage <paul@paulmenage.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Oleg Nesterov <oleg@redhat.com>
2011-11-21 12:32:25 -08:00
..
2011-11-07 09:11:16 -08:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:25 -04:00
2011-11-16 09:21:50 +01:00
2011-08-03 11:30:42 -04:00
2011-09-27 09:25:02 +01:00
2011-10-31 17:30:44 -07:00
2011-08-25 16:25:33 -07:00
2011-11-02 12:53:43 +01:00
2011-11-07 23:54:53 +01:00
2011-10-31 20:19:04 +00:00
2011-09-14 15:24:51 -04:00
2011-11-16 22:00:34 -05:00
2011-08-08 16:08:08 +02:00
2011-10-30 04:43:30 -04:00
2011-09-27 18:08:04 +02:00
2011-09-25 19:52:59 +03:00
2011-09-16 19:20:20 -04:00
2011-11-02 16:06:57 -07:00
2011-11-02 16:06:58 -07:00
2011-10-31 11:51:28 -04:00
2011-10-31 14:03:22 +01:00
2011-11-02 16:07:02 -07:00
2011-11-21 12:32:24 -08:00
2011-10-31 17:30:47 -07:00
2011-08-16 00:16:49 -07:00
2011-08-03 14:25:22 -10:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-03 14:01:21 -04:00
2011-08-23 10:10:38 -07:00
2011-11-02 16:07:02 -07:00
2011-09-14 15:24:51 -04:00