From: Tejun Heo Date: Wed, 12 Feb 2014 21:07:59 +0000 (-0500) Subject: cgroup_freezer: document freezer_fork() subtleties X-Git-Tag: v3.15-rc1~109^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60bed296ac67b9e2765646dec8e36e3b4d7c395;p=pandora-kernel.git cgroup_freezer: document freezer_fork() subtleties cgroup_subsys->fork() callback is special in that it's called outside the usual cgroup locking and may race with on-going migration. freezer_fork() currently doesn't consider such race condition; however, it is still correct thanks to the fact that freeze_task() may be called spuriously. This is quite subtle. Let's explain what's going on and add test to detect racing and losing to task migration and skip freeze_task() in such cases for documentation. This doesn't make any behavior difference meaningful to userland. Signed-off-by: Tejun Heo Cc: Li Zefan Cc: "Rafael J. Wysocki" --- Reading git-diff-tree failed