[lxc-devel] [PATCH 1/2]: Ensure freezer state has changed

Daniel Lezcano dlezcano at fr.ibm.com
Thu Jul 15 21:07:11 UTC 2010


On 07/15/2010 02:59 AM, Matt Helsley wrote:
> On Fri, Jul 09, 2010 at 07:51:32PM -0700, Sukadev Bhattiprolu wrote:
>>
>> From: Sukadev Bhattiprolu<sukadev at linux.vnet.ibm.com>
>> Subject: [PATCH 1/2] Ensure frezer state has changed
>>
>> A write to the freezer.state file does not gurantee that the state has
>> changed. To ensure that the freezer state is either FROZEN or THAWED,
>> read the freezer state and if it has not changed, repeat the write.
>
> Technically this is only necessary for the THAWED ->  FROZEN
> transition. In other words, if we're FROZEN and write THAWED then
> we don't need to read the state. However, it doesn't hurt to check.
>
> Reviewed-by: Matt Helsley<matthltc at us.ibm.com>

Thanks Matt for the comments.
Suka, I pushed your patch, but if you have time, that would be nice if 
you can address Matt's comments.

Thanks
   -- Daniel




More information about the lxc-devel mailing list