public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc/eeh: remove eeh_event_handler()->daemonize()
@ 2011-08-16 19:08 Oleg Nesterov
  2011-08-16 19:17 ` Benjamin Herrenschmidt
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Oleg Nesterov @ 2011-08-16 19:08 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().

Note: looks like eeh_event_wq can be static and it can do all work
itself without kernel_thread().

Signed-off-by: Oleg Nesterov <oleg@redhat.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] 9+ messages in thread

end of thread, other threads:[~2011-08-18  7:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 19:08 [PATCH] powerpc/eeh: remove eeh_event_handler()->daemonize() Oleg Nesterov
2011-08-16 19:17 ` Benjamin Herrenschmidt
2011-08-16 19:24 ` Linas Vepstas
2011-08-16 19:29   ` Tejun Heo
2011-08-16 21:38     ` Linas Vepstas
2011-08-16 19:26 ` Tejun Heo
2011-08-17 17:27   ` Oleg Nesterov
2011-08-18  7:34     ` Tejun Heo
2011-08-16 21:27 ` Matt Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox