Im running latest udev (023-r1) on my box, and whenever i want to shutdown my machine it "hangs" on "Stoppping PCI and USB hotplugging". Its is from this situation impossible to shutdown the machine properly. So sysrq +b or reset button is the only way out. relevant modules loaded: hid && uhci_hcd. Reproducible: Always Steps to Reproduce: 1.use udev 2.use USB 3.shutdown the machine Actual Results: The shutdown process hold at stopping the USB and PCI hotplug. Expected Results: Stop the devices and continue the system shutdown. System uname: 2.6.5-rc2-tribal-4 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.3.13p1 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -fstack-protector -ftracer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -fstack-protector -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvMAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aalib alsa apache2 apm avi berkdb bindist cdr composite crypt cups directfb emacs encode esd fbcon foomaticdb gd gd-external gdbm ggi gif gnome gpm gtk gtk2 imlib ipv6 java jikes jpeg ldap libg++ libwww mad maildir mikmod mmx, motif mpeg mysql mysql, ncurses oggvorbis opengl oss pam pdflib perl php pic png pnp python quicktime readline sasl sdl slang spell sse ssl ssl, svga tcltk tcpd truetype x86 xml xml2 xmms xpm xv zlib video_cards_nvidia" s ccache cvs sandbox"
Hm, udev has _nothing_ to do with shutdown. This looks like a hotplug issue. Probably one where the usb modules are hanging when unloading. As this is a very well known issue with the USB code in the kernel, and the kernel USB developers are working on this, I am going to get rid of this bug. If you want, try to unload your usb modules by hand to verify this is the problem. If it is, please try the latest -mm kernel, as this bug is probably fixed in there. If not, please create a kernel bug at bugzilla.kernel.org in the USB category. thanks.
Apologies for bringing this up again but I'm getting similar "hang on module unload" issues with more than just the USB drivers under 2.6.5-rc2+. For me my sound and sensor modules (and probably others, these are really the only two I've tested with) are affected too. Disabling USB support is enough to prevent hotplug from hanging on shutdown (confirming that issue as a factor) but it'll still hang on the next module unload which is either the sound or sensor modules. Could something similar to what's affecting the USB modules be effecting these too or is it something else? I couldn't find anything (besides the already known USB issues) on this in the kernel bugzilla either so should I file a new bug myself or are they already looking into it as part of the USB issues?
Im using rc3 now, and this time I didn't compiled USB or any ALSA modules. All compiled in the kernel [*] It works.
I installed 2.6.5-rc3-mm3 a short while ago and it finally seems to correct this hotplug business in all the affected modules. Case closed by the look of it.