Re: [PATCH] cgroup_freezer: Freezing and task move race fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tomasz Buchert
Date: Wednesday, August 11, 2010 - 12:35 am

Matt Helsley a écrit :

Good!

My first scenario was a bit different:
Time	"bug" goes through these states		cgroup code checks for these states
-----------------------------------------------------------------------------------
|	freezing
|						is_task_frozen_enough? Nope.
|						<move>
|	frozen
V
but the problem is the same.


This can't happen as far as I know because there is cgroup_lock around the code in freezer_write()
and freezer_can_attach().
The task can't enter 'freezing' state when can_attach is executed.


Same thing here.


Again.


Well, once more.


What do you think?

Tomasz
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Tue Aug 10, 12:53 pm)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Wed Aug 11, 12:30 am)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Tomasz Buchert, (Wed Aug 11, 12:35 am)
[PATCH 0/3] Two bugfixes for cgroup freezer. , Tomasz Buchert, (Thu Aug 12, 2:45 am)
Re: [PATCH] cgroup_freezer: Freezing and task move race fix, Rafael J. Wysocki, (Thu Aug 12, 6:35 pm)