linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: USB-Storage module doesn't get removed when unplugged
Date: Mon, 20 Oct 2003 22:46:35 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-106669047608531@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106664966123619@msgid-missing>

On Mon, Oct 20, 2003 at 11:49:41PM +0200, reflex wrote:
> Greg KH schrieb:
> 
> > We do not unload any modules based on hotplug events, sorry. 
> > It's impossible to figure out if it should be done or not, so
> > we do not do it.
> 
> You don't have to figure it out. Just try to rmmod it (if there
> are more than one module, do this in the correct order). If the
> device or whatever it is is still in use you just get an error
> which you will ignore.
> 
> If you unplug the second keyboard and try to rmmod keybdev you
> get the message "devices busy" because there is still one
> keyboard left.
> 
> Correct me if this is not true. Im not a linux kernel guru.

This is not true.  Try it today with just 1 usb keyboard :)

Oh and on 2.6, you can always unload a network module, even if it is in
use.  It will shut down the connection and unload itself quite nicely.

> I should probably find the constellation where I get trouble with
> the devices instead of just unloading the modules. This would be
> a workaround.
> 
> Anyway I don't really care how it works as long as it DOES work.

Sorry, impossible to get correct.  So we do not do it.

> And linux hotplug has proven me more than one time that it can
> lock itself up so you need to know the root password to make it
> work again without rebooting. hello windows....

What do you mean by this?  the hotplug scripts lock up?  What happens?
What version of the scripts?  What kernel version?

Can you please send a better bug report that that?

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2003-10-20 22:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-20 11:31 USB-Storage module doesn't get removed when unplugged reflex
2003-10-20 17:37 ` Greg KH
2003-10-20 22:46 ` Greg KH [this message]
2003-10-21 17:52 ` reflex

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=marc-linux-hotplug-106669047608531@msgid-missing \
    --to=greg@kroah.com \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).