The command "umount -art afs" hangs, when inotify is compiled to the kernel (CONFIG_INOTIFY=y) My kernel version: gentoo sources 2.6.22-r2 When I recompiled my kernel without inotify (# CONFIG_INOTIFY is not set), the problem disappeared. Reproducible: Always Steps to Reproduce: umount -art afs Actual Results: I checked this command with strace. (strace umount -art afs) The last line was: sync( Expected Results: Do nothing, because I do not use afs! Actually I do not use afs, the script /etc/init.d/netmount, "generates" the following command: "umount -art afs,cifs,coda,davfs,fuse,gfs,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs"
sys-apps/util-linux version? emerge --info?
Portage 2.1.2.11 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686) ================================================================= System Settings ================================================================= System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 14 Aug 2007 18:50:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.inf.elte.hu/ http://gentoo.inf.elte.hu" LANG="hu_HU.UTF-8" LC_ALL="hu_HU.UTF-8" LINGUAS="en hu" MAKEOPTS="-j2" PKGDIR="/usr/binpkg" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X alsa berkdb bitmap-fonts cdr cli cracklib crypt cups dbus dri dvd fortran gdbm gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg kde midi mmx mono mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl ppds pppd python qt3 qt4 readline reflection session spl sse ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hu" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ================================================================= Package Settings ================================================================= sys-apps/util-linux-2.12r-r7 was built with the following: CFLAGS="-O2 -fomit-frame-pointer -include -march=prescott -pipe linux/compiler.h" CXXFLAGS="-O2 -fomit-frame-pointer -include -march=prescott -pipe linux/compiler.h"
Please try w/ 2.13-r1
I was wrong in my first report. I had the kernel 2.6.19 (as the emerge info shows). With kernel 2.6.22-gentoo-r2 the problem disappears! I tried util-linux 2.13-r1, but with the kernel 2.6.19, umount still does not work.
Well, so upgrade your kernel.