lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/2] sunrpc: make rpc_wait_bit_killable handle freeze events
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


\
 
 \ /
  Last update: 2011-11-28 21:41    [from the cache]
©2003-2011 Jasper Spaans