Re: [PATCH -mm 2/7] Freezer: Close theoretical race between refrigerator and thaw_tasks

2007-03-01 Thread Pavel Machek
On Thu 2007-03-01 16:08:12, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > If the freezing of tasks fails and a task is preempted in refrigerator() > before > calling frozen_process(), then thaw_tasks() may run before this task is > frozen. > In that case the task wil

[PATCH -mm 2/7] Freezer: Close theoretical race between refrigerator and thaw_tasks

2007-03-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> If the freezing of tasks fails and a task is preempted in refrigerator() before calling frozen_process(), then thaw_tasks() may run before this task is frozen. In that case the task will freeze and no one will thaw it. To fix this race we can call freez