Messages in this thread | | | Date | Mon, 28 Nov 2011 12:39:01 -0800 | From | Tejun Heo <> | Subject | Re: [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
| |