* [PATCH RESEND] powerpc/eeh: remove eeh_event_handler()->daemonize()
@ 2012-02-22 17:57 Oleg Nesterov
2012-02-22 17:58 ` Oleg Nesterov
0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2012-02-22 17:57 UTC (permalink / raw)
To: Andrew Morton, Benjamin Herrenschmidt, Paul Mackerras,
Linas Vepstas
Cc: Matt Fleming, Tejun Heo, linux-kernel
daemonize() is only needed when a user-space task does kernel_thread().
eeh_event_handler() thread is created by the worker kthread, and thus
it doesn't need the soon-to-be-deprecated daemonize().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Linas Vepstas <linasvepstas@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Matt Fleming <matt.fleming@intel.com>
---
arch/powerpc/platforms/pseries/eeh_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 3.1/arch/powerpc/platforms/pseries/eeh_event.c~3_daemonize_eeh 2011-04-06 21:33:42.000000000 +0200
+++ 3.1/arch/powerpc/platforms/pseries/eeh_event.c 2011-08-16 21:03:56.000000000 +0200
@@ -60,7 +60,7 @@ static int eeh_event_handler(void * dumm
struct eeh_event *event;
struct pci_dn *pdn;
- daemonize ("eehd");
+ set_task_comm(current, "eehd");
set_current_state(TASK_INTERRUPTIBLE);
spin_lock_irqsave(&eeh_eventlist_lock, flags);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND] powerpc/eeh: remove eeh_event_handler()->daemonize()
2012-02-22 17:57 [PATCH RESEND] powerpc/eeh: remove eeh_event_handler()->daemonize() Oleg Nesterov
@ 2012-02-22 17:58 ` Oleg Nesterov
0 siblings, 0 replies; 2+ messages in thread
From: Oleg Nesterov @ 2012-02-22 17:58 UTC (permalink / raw)
To: Andrew Morton, Benjamin Herrenschmidt, Paul Mackerras,
Linas Vepstas
Cc: Matt Fleming, Tejun Heo, linux-kernel
On 02/22, Oleg Nesterov wrote:
>
> daemonize() is only needed when a user-space task does kernel_thread().
>
> eeh_event_handler() thread is created by the worker kthread, and thus
> it doesn't need the soon-to-be-deprecated daemonize().
Forgot to mention... Please note that eeh_event_handler() is the last
caller of daemonize(), all other (ab)users are already fixed.
Oleg.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-22 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 17:57 [PATCH RESEND] powerpc/eeh: remove eeh_event_handler()->daemonize() Oleg Nesterov
2012-02-22 17:58 ` Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox