lkml.org 
[lkml]   [2011]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/16] freezer: fix current->state restoration race in refrigerator()
Hello, Rafael.

On Fri, Aug 19, 2011 at 11:08:59PM +0200, Rafael J. Wysocki wrote:
> On Friday, August 19, 2011, Tejun Heo wrote:
> > refrigerator() saves current->state before entering frozen state and
> > restores it before returning using __set_current_state(); however,
> > this is racy, for example, please consider the following sequence.
> >
> > set_current_state(TASK_INTERRUPTIBLE);
> > try_to_sleep();
>
> Did you mean try_to_freeze() here?

Heh, yeah, I'm constantly being confused among try_to_freeze(),
try_to_sleep() and try_to_wake_up(). Will update. ;)

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-08-20 10:17    [W:0.048 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site