Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53005 - rmmod hangs when stopping USB hotplugging.
Summary: rmmod hangs when stopping USB hotplugging.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-04 12:09 UTC by Jakob Schiotz
Modified: 2004-09-20 15:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My kernel configuration file (.config) (.config,25.36 KB, text/plain)
2004-06-04 12:12 UTC, Jakob Schiotz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Schiotz 2004-06-04 12:09:02 UTC
Sometimes the system freezes while shutting down.  It always happens when USB hotplugging is being shut down.  Once, I had a login on another virtual terminal open, and I could see that an rmmod processed removing one of the USB modules was hanging.  Unfortunately, I did not write down which one, and as it only happens occationally I have not been able to reproduce it while having another virtual terminal open.  

Killing the rmmod process made the shutdown procedure progress until the next module should be removed, then rmmod was hanging again.  Killing that one and it proceeded to the next rmmod etc.

I am using the 2.6.5 kernel (development-sources).  It only happened once with this kernel, it was quite common with the 2.6.4 kernel.

By the way, is there any good reason to unload kernel modules during shutdown?  It may sense when a service is stopped during normal operation, but during shutdown I would guess some time could be saved by skipping those steps.


Reproducible: Sometimes
Steps to Reproduce:
1. Shut down the machine from the command line or from X.
2.
3.

Actual Results:  
Occationally, the shutdown process freezes when USB hotplugging is shutting down.

Expected Results:  
A clean shut down, every time :-)

sys-kernel/development-sources-2.6.5
sys-apps/hotplug-20040401
sys-apps/module-init-tools-3.0

[baula] ~>emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-functions=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi alsa arts avi berkdb cdr crypt cups dga directfb doc dvd
emacs encode esd foomaticdb gdbm gif gpm gtk gtk2 imap imlib java jpeg kde
libg++ libwww mad maildir mbox mikmod motif mozilla mpeg mule ncurses nls
noreiserfs oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python qt
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype
trusted usb wxwindows x86 xml2 xmms xv zlib"
Comment 1 Jakob Schiotz 2004-06-04 12:12:01 UTC
Created attachment 32654 [details]
My kernel configuration file (.config)

This is the configuration of my 2.6.5 kernel.
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 15:59:15 UTC
Yes.  Next version of hotplug will not unload the usb devices.

It should fix this issue.