On Mon, Nov 21, 2011 at 12:40:20PM -0500, Jeff Layton wrote: > Allow the freezer to skip wait_on_bit_killable sleeps in the sunrpc > layer. This should allow suspend and hibernate events to proceed, even > when there are RPC's pending on the wire. > > Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx> > --- > include/linux/freezer.h | 12 ++++++++++++ > net/sunrpc/sched.c | 3 ++- > 2 files changed, 14 insertions(+), 1 deletions(-) > > diff --git a/include/linux/freezer.h b/include/linux/freezer.h > index a5386e3..8b60dd0 100644 > --- a/include/linux/freezer.h > +++ b/include/linux/freezer.h > @@ -135,6 +135,16 @@ static inline void set_freezable_with_signal(void) > } > > /* > + * Freezer-friendly macro around schedule() in the kernel. > + */ > +#define freezable_schedule() \ > +({ \ > + freezer_do_not_count(); \ > + schedule(); \ > + freezer_count(); \ Don't we want try_to_freeze() here? If the freezer thought the task was safe to skip, it better stay inside freezer until the freezing condition is lifted. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html