public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel zombie threads after module removal.
@ 2002-05-29 19:13 Christian.Gennerat
  2002-05-29 20:09 ` John Levon
  0 siblings, 1 reply; 3+ messages in thread
From: Christian.Gennerat @ 2002-05-29 19:13 UTC (permalink / raw)
  To: lkml

This is very close to the problem related in 
http://lkml.org/archive/2002/2/4/368/index.html
but I have no USB. I have SCSI with aha152x_cs.o,
and after doing "cardctl eject" that removes the module,
the process scsi_eh_0  stays as zombie.
If I repeat the operation of card insert and eject,
I get  several  scsi_eh_0  zombies.

Now  with 2.4.18, but  I have got this problem with others 2.4 kernels.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel zombie threads after module removal.
  2002-05-29 19:13 Kernel zombie threads after module removal Christian.Gennerat
@ 2002-05-29 20:09 ` John Levon
  2002-05-29 21:11   ` [PATCH] " Christian Gennerat
  0 siblings, 1 reply; 3+ messages in thread
From: John Levon @ 2002-05-29 20:09 UTC (permalink / raw)
  To: Christian.Gennerat; +Cc: lkml

On Wed, May 29, 2002 at 09:13:05PM +0200, Christian.Gennerat wrote:

> This is very close to the problem related in 
> http://lkml.org/archive/2002/2/4/368/index.html
> but I have no USB. I have SCSI with aha152x_cs.o,
> and after doing "cardctl eject" that removes the module,
> the process scsi_eh_0  stays as zombie.

Add 

	reparent_to_init();

after the call to daemonize() in scsi_error_handler() in
drivers/scsi/scsi_error.c

Disclaimer: I don't know this code at all

regards
john

-- 
"If you look 'round the table and can't tell who the sucker is, it's you." 
	- Quiz Show 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Kernel zombie threads after module removal.
  2002-05-29 20:09 ` John Levon
@ 2002-05-29 21:11   ` Christian Gennerat
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Gennerat @ 2002-05-29 21:11 UTC (permalink / raw)
  To: lkml



John Levon wrote:

>>This is very close to the problem related in 
>>http://lkml.org/archive/2002/2/4/368/index.html
>>but I have no USB. I have SCSI with aha152x_cs.o,
>>and after doing "cardctl eject" that removes the module,
>>the process scsi_eh_0  stays as zombie.
>>
>
>Add 
>
>	reparent_to_init();
>
>after the call to daemonize() in scsi_error_handler() in
>drivers/scsi/scsi_error.c
>
>Disclaimer: I don't know this code at all
>
Good.

diff -Bbu /src/linux/drivers/scsi/scsi_error.c.orig /src/linux/drivers/scsi/scsi_error.c
--- scsi_error.c.orig	Sun Sep  9 17:52:35 2001
+++ scsi_error.c	Wed May 29 22:41:32 2002
@@ -1860,6 +1860,7 @@
 	 */
 
 	daemonize();
+	reparent_to_init();
 
 	/*
 	 * Set the name of this process.


>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-29 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 19:13 Kernel zombie threads after module removal Christian.Gennerat
2002-05-29 20:09 ` John Levon
2002-05-29 21:11   ` [PATCH] " Christian Gennerat

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