Skip to contentSkip to conversation

powerpc/eeh: remove eeh_event_handler()->daemonize()

PATCH RESEND In review Oleg Nesterov 1 participant 2 messages Feb 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 powerpc/eeh: remove eeh_event_handler()->daemonize()

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().

---

 arch/powerpc/platforms/pseries/eeh_event.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/eeh_event.c renamed from arch/powerpc/platforms/pseries/eeh_event.c~3_daemonize_eeh +1 -1
@@ -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);
#1 lore raw
Quoted 5 lines · Oleg Nesterov

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.