From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 20 Oct 2003 17:37:53 +0000 Subject: Re: USB-Storage module doesn't get removed when unplugged Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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