All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrik Weiskircher <me@justp.at>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: khubd zombie
Date: 18 Feb 2002 21:16:30 +0100	[thread overview]
Message-ID: <1014063390.6649.8.camel@pat> (raw)
In-Reply-To: <20020218200041.GE20284@kroah.com>
In-Reply-To: <1014039193.523.42.camel@dev1lap> <20020218181417.GA19992@kroah.com> <1014062182.608.36.camel@pat>  <20020218200041.GE20284@kroah.com>

On Mon, 2002-02-18 at 21:00, Greg KH wrote:
> On Mon, Feb 18, 2002 at 08:56:22PM +0100, Patrik Weiskircher wrote:
> > 
> > I tried it with 2.4.5, 2.4.12, 2.4.17.
> > And I have to kill everything except init.
> > I need a "clean" system.
> 
> What?  You want to also get rid of keventd, ksoftirqd_CPUX, kswapd, and
> others and expect your machine to still work properly?

I just do a kill(-1,15);
It doesn't affect keventd, ksoftirqd_CPUX, etc. as far as i know.
Except the khubd, it keeps getting a zombie.

> 
> > Anyway, I don't think that it should behave like that.
> > Killing something from userspace should not affect the kernel, or did I
> > miss something?
> 
> This is a _kernel_ thread, not a userspace program running.

khubd is a kernel thread, yes.
But if I issue a 'killall khubd' it shouldn't become a zombie.

> 
> > I fixed it, it works, patch file attached.
> 
> And what happened to your USB devices when you kill khubd after applying
> your patch?

They work as always.

> 
> The reparent_to_init() seems like the better thing to do.
> 

I have to admit, I'm really new to the kernel sources.
There's still _very_ much I don't know about the kernel.
These are the first steps in kernel programming. 
Sorry if it's the wrong way to do, I just try my best.

> thanks,
> 
> greg k-h

Best Regards,
Patrik Weiskircher


  reply	other threads:[~2002-02-18 20:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-18 13:33 khubd zombie Patrik Weiskircher
2002-02-18 18:14 ` Greg KH
2002-02-18 19:56   ` Patrik Weiskircher
2002-02-18 20:00     ` Greg KH
2002-02-18 20:16       ` Patrik Weiskircher [this message]
2002-02-18 20:43         ` Greg KH
2002-02-18 21:05           ` Patrik Weiskircher
2002-02-18 18:21 ` John Levon
2002-02-22  1:19 ` Andrew Rodland

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=1014063390.6649.8.camel@pat \
    --to=me@justp.at \
    --cc=greg@kroah.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.