Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 194231

Summary: umount -art afs" hangs when inotify is compiled into the kernel
Product: Gentoo Linux Reporter: Anton Firsov <antonfir>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Firsov 2007-09-29 23:05:01 UTC
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"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-29 23:22:47 UTC
sys-apps/util-linux version? emerge --info?
Comment 2 Anton Firsov 2007-09-30 11:20:16 UTC
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"
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-30 13:52:59 UTC
Please try w/ 2.13-r1
Comment 4 Anton Firsov 2007-10-03 21:51:10 UTC
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.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-04 07:26:31 UTC
Well, so upgrade your kernel.