public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Gennerat <xgen@free.fr>
To: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] Kernel zombie threads after module removal.
Date: Wed, 29 May 2002 23:11:47 +0200	[thread overview]
Message-ID: <3CF54413.6090200@free.fr> (raw)
In-Reply-To: <3CF52841.8040507@noos.fr> <20020529200908.GA7499@compsoc.man.ac.uk>



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.


>



      reply	other threads:[~2002-05-29 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Christian Gennerat [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CF54413.6090200@free.fr \
    --to=xgen@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox