Re: [PATCH cgroup/for-3.15] cgroup_freezer: document freezer_fork() subtleties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 12, 2014 at 04:07:59PM -0500, Tejun Heo wrote:
> 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 <tj@xxxxxxxxxx>
> Cc: Li Zefan <lizefan@xxxxxxxxxx>
> Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>

Applied to cgroup/for-3.15.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux