Re: [PATCH v3 1/2] sunrpc: make rpc_wait_bit_killable handlefreeze events

From: Tejun Heo
Date: Mon Nov 28 2011 - 15:39:09 EST


Hello,

On Mon, Nov 28, 2011 at 03:01:27PM -0500, Jeff Layton wrote:
> +#define freezable_schedule() \
> +({ \
> + freezer_do_not_count(); \
> + if (!try_to_freeze()) \
> + schedule(); \
> + freezer_count(); \
> +})

I don't think you need try_to_freeze() there when you apply this on
top of pm-freezer branch. Per-task freezing flag is gone and freezing
condition is completely transient from the POV of each task and the
freezer also doesn't care at all whether a task enters freezer or
becomes unfreezable.

Thanks.

--
tejun
--
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/