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 17:37:53 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-106668729105428@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106664966123619@msgid-missing>

On Mon, Oct 20, 2003 at 01:31:56PM +0200, reflex wrote:
> Hello,
> 
> When I plug in a memory stick the usb-storage module is loaded.
> If I unplug it, the module is NOT unloaded.
> 
> Sometimes this becomes a problem if I plug in an sbp2 device
> (i.e. iPod) after unplugging the memory stick. /dev/sda is still
> "in use" by usb-storage but somehow the sbp2 module doesn't
> realize that and tries to assign sda to the plugged in device
> (the iPod here).
> 
> This does not always happen! But I can always fix it by rmmoding
> usb-storage after the memory stick unplug.
> 
> USB Modules should be unloaded after use!

No they should not.

What would happen if you unloaded the usb keyboard module after removing
only 1 of 2 USB keyboards in your system.  Yeah, that would not work :)

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.

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

  reply	other threads:[~2003-10-20 17:37 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 [this message]
2003-10-20 22:46 ` Greg KH
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-106668729105428@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).