Re: [PATCH pm-freezer 3/4] freezer: restructure __refrigerator()

From: Oleg Nesterov
Date: Fri Sep 02 2011 - 13:12:24 EST


On 08/31, Tejun Heo wrote:
>
> for (;;) {
> set_current_state(TASK_UNINTERRUPTIBLE);
> +
> + spin_lock_irq(&freezer_lock);
> + current->flags |= PF_FROZEN;
> if (!freezing(current) ||
> - (check_kthr_stop && kthread_should_stop()))
> + (check_kthr_stop && kthread_should_stop())) {
> + current->flags &= ~PF_FROZEN;
> + break;

Argh! sorry I missed this...

This "break" is typo, it should be removed.

Otherwise I believe this is correct.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/