Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Benjamin Herrenschmidt
> Actually, spinlock_t is not suitable. Because spin_unlcok() does NOT imply > mb(). The subsequent wait_event_timeout()->atomic_read() may leak into the > critical section. > > We can use set_mb(), if we don't want to play with smp_mb() by hand :) spin_unlock implies a smp_wmb() but yeah, not

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Oleg Nesterov
On 07/03, Benjamin Herrenschmidt wrote: > > On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: > > > > case PM_HIBERNATION_PREPARE: > > > > case PM_SUSPEND_PREPARE: > > > > usermodehelper_disabled = 1; > > > > - return NOTIFY_OK; > > > > + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Rafael J. Wysocki
On Tuesday, 3 July 2007 15:19, Rafael J. Wysocki wrote: > On Tuesday, 3 July 2007 07:30, Benjamin Herrenschmidt wrote: > > On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: > > > > > case PM_HIBERNATION_PREPARE: > > > > > case PM_SUSPEND_PREPARE: > > > > >

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Rafael J. Wysocki
On Tuesday, 3 July 2007 07:30, Benjamin Herrenschmidt wrote: > On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: > > > > case PM_HIBERNATION_PREPARE: > > > > case PM_SUSPEND_PREPARE: > > > > usermodehelper_disabled = 1; > > > > - return NOTIFY_OK; > > > > +

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Rafael J. Wysocki
On Tuesday, 3 July 2007 07:30, Benjamin Herrenschmidt wrote: On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Rafael J. Wysocki
On Tuesday, 3 July 2007 15:19, Rafael J. Wysocki wrote: On Tuesday, 3 July 2007 07:30, Benjamin Herrenschmidt wrote: On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1;

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Oleg Nesterov
On 07/03, Benjamin Herrenschmidt wrote: On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-03 Thread Benjamin Herrenschmidt
Actually, spinlock_t is not suitable. Because spin_unlcok() does NOT imply mb(). The subsequent wait_event_timeout()-atomic_read() may leak into the critical section. We can use set_mb(), if we don't want to play with smp_mb() by hand :) spin_unlock implies a smp_wmb() but yeah, not a full

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-02 Thread Benjamin Herrenschmidt
On Tue, 2007-06-26 at 10:48 +0200, Pavel Machek wrote: > > The problem, as far as I understand it, is that the instructions can > get > > reordered if there are no barriers in there. > > Are you sure? I thought atomic variables have barrirers built-in. bzzzt. they don't. Ben. - To

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-02 Thread Benjamin Herrenschmidt
On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: > > > case PM_HIBERNATION_PREPARE: > > > case PM_SUSPEND_PREPARE: > > > usermodehelper_disabled = 1; > > > - return NOTIFY_OK; > > > + smp_mb(); > > > > usermodehelper_disabled should be atomic

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-02 Thread Benjamin Herrenschmidt
On Tue, 2007-06-26 at 10:48 +0200, Pavel Machek wrote: The problem, as far as I understand it, is that the instructions can get reordered if there are no barriers in there. Are you sure? I thought atomic variables have barrirers built-in. bzzzt. they don't. Ben. - To unsubscribe from

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-07-02 Thread Benjamin Herrenschmidt
On Tue, 2007-06-26 at 00:27 +0200, Rafael J. Wysocki wrote: case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb(); usermodehelper_disabled should be atomic variable, too, so we

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Pavel Machek
Hi! > > > [I hope the ACKs still apply.] > > > > Uhuh, not 100% sure. > > > > > +static int usermodehelper_disabled; > > > + > > > > > > ... > > > > > case PM_HIBERNATION_PREPARE: > > > case PM_SUSPEND_PREPARE: > > > usermodehelper_disabled = 1; > > > - return

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Oleg Nesterov
On 06/26, Rafael J. Wysocki wrote: > > On Monday, 25 June 2007 23:55, Pavel Machek wrote: > > > > > case PM_HIBERNATION_PREPARE: > > > case PM_SUSPEND_PREPARE: > > > usermodehelper_disabled = 1; > > > - return NOTIFY_OK; > > > + smp_mb(); > > > >

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Uli Luckas
On Monday, 25. June 2007, Rafael J. Wysocki wrote: > [I hope the ACKs still apply.] > Mine does > +static void helper_lock(void) > +{ > + atomic_inc(_helpers); > + smp_mb__after_atomic_inc(); > +} > + > +static void helper_unlock(void) > +{ > + if

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Uli Luckas
On Monday, 25. June 2007, Rafael J. Wysocki wrote: [I hope the ACKs still apply.] Mine does +static void helper_lock(void) +{ + atomic_inc(running_helpers); + smp_mb__after_atomic_inc(); +} + +static void helper_unlock(void) +{ + if

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Oleg Nesterov
On 06/26, Rafael J. Wysocki wrote: On Monday, 25 June 2007 23:55, Pavel Machek wrote: case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb(); usermodehelper_disabled should be atomic

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-26 Thread Pavel Machek
Hi! [I hope the ACKs still apply.] Uhuh, not 100% sure. +static int usermodehelper_disabled; + ... case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Rafael J. Wysocki
On Monday, 25 June 2007 23:55, Pavel Machek wrote: > Hi! > > > [I hope the ACKs still apply.] > > Uhuh, not 100% sure. > > > +static int usermodehelper_disabled; > > + > > > ... > > > case PM_HIBERNATION_PREPARE: > > case PM_SUSPEND_PREPARE: > > usermodehelper_disabled =

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Pavel Machek
Hi! > [I hope the ACKs still apply.] Uhuh, not 100% sure. > +static int usermodehelper_disabled; > + ... > case PM_HIBERNATION_PREPARE: > case PM_SUSPEND_PREPARE: > usermodehelper_disabled = 1; > - return NOTIFY_OK; > + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Nigel Cunningham
On Tuesday 26 June 2007 07:52:23 Rafael J. Wysocki wrote: > [I hope the ACKs still apply.] Mine does :> Nigel pgp9gRcYEcqWK.pgp Description: PGP signature

[PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Rafael J. Wysocki
[I hope the ACKs still apply.] --- From: Rafael J. Wysocki <[EMAIL PROTECTED]> At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Oleg Nesterov
On 06/25, Rafael J. Wysocki wrote: > > On Monday, 25 June 2007 12:43, Oleg Nesterov wrote: > > > Second, call_usermodehelper's path should first increment the counter, and > > only > > then check usermodehelper_disabled, > > It does this already. Ah, sorry, I looked at this patch without

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Paul E. McKenney
On Mon, Jun 25, 2007 at 02:43:32PM +0400, Oleg Nesterov wrote: > Rafael J. Wysocki wrote: > > > > static int usermodehelper_pm_callback(struct notifier_block *nfb, > > unsigned long action, > > void *ignored) > > { > > +

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Rafael J. Wysocki
On Monday, 25 June 2007 12:43, Oleg Nesterov wrote: > Rafael J. Wysocki wrote: > > > > static int usermodehelper_pm_callback(struct notifier_block *nfb, > > unsigned long action, > > void *ignored) > > { > > + long retval;

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Oleg Nesterov
Rafael J. Wysocki wrote: > > static int usermodehelper_pm_callback(struct notifier_block *nfb, > unsigned long action, > void *ignored) > { > + long retval; > + > switch (action) { > case

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Oleg Nesterov
Rafael J. Wysocki wrote: static int usermodehelper_pm_callback(struct notifier_block *nfb, unsigned long action, void *ignored) { + long retval; + switch (action) { case PM_HIBERNATION_PREPARE:

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Rafael J. Wysocki
On Monday, 25 June 2007 12:43, Oleg Nesterov wrote: Rafael J. Wysocki wrote: static int usermodehelper_pm_callback(struct notifier_block *nfb, unsigned long action, void *ignored) { + long retval; +

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Paul E. McKenney
On Mon, Jun 25, 2007 at 02:43:32PM +0400, Oleg Nesterov wrote: Rafael J. Wysocki wrote: static int usermodehelper_pm_callback(struct notifier_block *nfb, unsigned long action, void *ignored) { + long retval;

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-25 Thread Oleg Nesterov
On 06/25, Rafael J. Wysocki wrote: On Monday, 25 June 2007 12:43, Oleg Nesterov wrote: Second, call_usermodehelper's path should first increment the counter, and only then check usermodehelper_disabled, It does this already. Ah, sorry, I looked at this patch without seeing the

[PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Rafael J. Wysocki
[I hope the ACKs still apply.] --- From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Nigel Cunningham
On Tuesday 26 June 2007 07:52:23 Rafael J. Wysocki wrote: [I hope the ACKs still apply.] Mine does : Nigel pgp9gRcYEcqWK.pgp Description: PGP signature

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Pavel Machek
Hi! [I hope the ACKs still apply.] Uhuh, not 100% sure. +static int usermodehelper_disabled; + ... case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; - return NOTIFY_OK; + smp_mb();

Re: [PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks (rev. 2)

2007-06-25 Thread Rafael J. Wysocki
On Monday, 25 June 2007 23:55, Pavel Machek wrote: Hi! [I hope the ACKs still apply.] Uhuh, not 100% sure. +static int usermodehelper_disabled; + ... case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: usermodehelper_disabled = 1; -

[PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Pavel Machek
Hi! > > > > > Special thanks to Uli Luckas <[EMAIL PROTECTED]> for reviewing the > > > > > previous > > > > > versions of this patch and for very useful comments. > > > > ... > > > > > Reviewed-by: Pavel Machek <[EMAIL PROTECTED]> > > > > > > > > Eh, not sure this header is worth anything.

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Rafael J. Wysocki
Hi, On Sunday, 24 June 2007 19:05, Pavel Machek wrote: > Hi! > > > > > Special thanks to Uli Luckas <[EMAIL PROTECTED]> for reviewing the > > > > previous > > > > versions of this patch and for very useful comments. > > > ... > > > > Reviewed-by: Pavel Machek <[EMAIL PROTECTED]> > > > > > >

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Pavel Machek
Hi! > > > Special thanks to Uli Luckas <[EMAIL PROTECTED]> for reviewing the > > > previous > > > versions of this patch and for very useful comments. > > ... > > > Reviewed-by: Pavel Machek <[EMAIL PROTECTED]> > > > > Eh, not sure this header is worth anything. Sometimes I'm lazy and > > stop

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Pavel Machek
Hi! Special thanks to Uli Luckas [EMAIL PROTECTED] for reviewing the previous versions of this patch and for very useful comments. ... Reviewed-by: Pavel Machek [EMAIL PROTECTED] Eh, not sure this header is worth anything. Sometimes I'm lazy and stop when I see first

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Rafael J. Wysocki
Hi, On Sunday, 24 June 2007 19:05, Pavel Machek wrote: Hi! Special thanks to Uli Luckas [EMAIL PROTECTED] for reviewing the previous versions of this patch and for very useful comments. ... Reviewed-by: Pavel Machek [EMAIL PROTECTED] Eh, not sure this header is worth

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Pavel Machek
Hi! Special thanks to Uli Luckas [EMAIL PROTECTED] for reviewing the previous versions of this patch and for very useful comments. ... Reviewed-by: Pavel Machek [EMAIL PROTECTED] Eh, not sure this header is worth anything. Sometimes I'm lazy and stop when I

[PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing of

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Rafael J. Wysocki
On Friday, 22 June 2007 23:07, Pavel Machek wrote: > Hi! > > > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > > > At present, if a user mode helper is running while > > usermodehelper_pm_callback() > > is executed, the helper may be frozen and the completion in > > call_usermodehelper_exec()

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Pavel Machek
Hi! > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > At present, if a user mode helper is running while > usermodehelper_pm_callback() > is executed, the helper may be frozen and the completion in > call_usermodehelper_exec() won't be completed until user space processes are > thawed. As a

[RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing

[RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing of

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Pavel Machek
Hi! From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the

Re: [RC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-22 Thread Rafael J. Wysocki
On Friday, 22 June 2007 23:07, Pavel Machek wrote: Hi! From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-21 Thread Rafael J. Wysocki
On Thursday, 21 June 2007 15:30, Pavel Machek wrote: > Hi! > > > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > > > At present, if a user mode helper is running while > > usermodehelper_pm_callback() > > is executed, the helper may be frozen and the completion in > > call_usermodehelper_exec()

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-21 Thread Pavel Machek
Hi! > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > At present, if a user mode helper is running while > usermodehelper_pm_callback() > is executed, the helper may be frozen and the completion in > call_usermodehelper_exec() won't be completed until user space processes are > thawed. As a

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-21 Thread Pavel Machek
Hi! From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-21 Thread Rafael J. Wysocki
On Thursday, 21 June 2007 15:30, Pavel Machek wrote: Hi! From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-20 Thread Uli Luckas
On Monday, 18. June 2007, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > At present, if a user mode helper is running while > usermodehelper_pm_callback() is executed, the helper may be frozen and the > completion in > call_usermodehelper_exec() won't be completed until

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-20 Thread Uli Luckas
On Monday, 18. June 2007, Rafael J. Wysocki wrote: From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-18 Thread Nigel Cunningham
Hi. On Tuesday 19 June 2007 07:29:58 Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > At present, if a user mode helper is running while usermodehelper_pm_callback() > is executed, the helper may be frozen and the completion in > call_usermodehelper_exec() won't be

[RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing

[RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed until user space processes are thawed. As a result, the freezing of

Re: [RFC][PATCH -mm] PM: Prevent frozen user mode helpers from failing the freezing of tasks

2007-06-18 Thread Nigel Cunningham
Hi. On Tuesday 19 June 2007 07:29:58 Rafael J. Wysocki wrote: From: Rafael J. Wysocki [EMAIL PROTECTED] At present, if a user mode helper is running while usermodehelper_pm_callback() is executed, the helper may be frozen and the completion in call_usermodehelper_exec() won't be completed