After playing my mp3 files in my ntfs partition, trying to unmount the partition results in a system crash. This makes it inpossible for me to shutdown cleanly. I use amarok to play my files. I didn't have any problems before moving to 2.6.12 gentoo sources. I've been using for example mm and love sources without problems. Reproducible: Always Steps to Reproduce: 1. mount a ntfs partition 2. use amarok to play files (probably using the partition should be enough) 3. umount the partition Actual Results: the system crashes pena betelgeuse # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r1 i686) ================================================================= System uname: 2.6.12-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer" DISTDIR="/usr/src/distfiles" FEATURES="autoconfig ccache cvs distlocks fixpackages noauto sandbox sfperms" GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo http://lame.lut.fi/linux/gentoo " LANG="en_US.utf8" LC_ALL="en_US.utf8" PKGDIR="/home/pkg/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/betelgeuse /usr/local/overlays/gentoo-java-experimental /usr/local/overlays/gentopia" SYNC="rsync://aria/portage" USE="x86 X aac acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdb cddb cdparanoia cdr crypt cups curl divx4linux dts dvd dvdr dvdread emboss encode esd fam flac foomaticdb freetype gcj gif gnome gstreamer gtk gtk2 hal imagemagick jack java jpeg kde kdeenablefinal kdexdeltas libg++ libwww logitech-mouse lzo mad makecheck mikmod mjpeg mmx mmx2 mozilla mp3 mpeg ncurses network nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pdflib png python qt quicktime readline real rtc ruby samba slp spell sse sse2 ssl subversion svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs xine xml xml2 xv xvid zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
No problems after booting 2.6.11-r11, playing and unmounting.
It's broken for me in 2.6.12-gentoo-r1 too. It works in 2.6.11-gentoo-r11. The problem is inotify. sysrq tells me it's hanging in inotify_unmount_inodes. This also explains why other kernel sources work; inotify is one of the patches in gentoo-sources. It works fine with inotify disabled. Also, it works fine if no file is read. A quick "mount ntfs; umount ntfs" doesn't hang, "mount ntfs; cat ntfs/file; umount ntfs" does.
Please describe what you mean by 'system crash'. The whole thing freezes? An error message gets printed? Please be verbose :)
I mean full freeze. It doesn't respond to anything any more.
did the problem still happen in -r2 or with the -15 inotify patch? Or is it something with -12 only?
It's not an inotify bug- its a bug triggered by inotify.
http://lkml.org/lkml/2005/7/1/175 Robert has posted a new Inotify patch to the lkml at the url above. It applies to 2.6.13-rc1, and I had it fail in 2 spots on 2.6.12-gentoo-r3 so I modified it slightly to apply cleanly. I have to admit, that I am not too sure that I chose the correct place to put the line that fails in open.c, however, I am fairly certain that it is. If anyone would like to test it, please, let me know, I will attach the patch I made, and comments are requested if I did it right, or wrong, or if it doesn't fix this problem at all.
Created attachment 62500 [details] inotify patch against 2.6.12-gentoo-r3 Please let me know if this works or not.
(In reply to comment #8) > Created an attachment (id=62500) [edit] > inotify patch against 2.6.12-gentoo-r3 > > Please let me know if this works or not. It doesn't. I applied the patch and got inotify to menuconfig. Enabled it and rebooted. After using the filesystem for a while, I tried to umount and the system froze.
After following the thread a bit more, it seems that the problem is with inotify after all, which dsd has noted on the lkml, I don't have any problems with inotify, but then, I run a linux only machine and have no need for ntfs. I do have a fat32 usb hard drive, and it doesn't seem to have this problem. Hopefully, it will be solved soon.
A patch for this was just posted on lkml: http://lkml.org/lkml/2005/7/4/149
Yep, I know, I was Anton's test subject ;) Waiting for new patches to hit mirrors...
Fixed in gentoo-sources-2.6.12-r4 Fixed in genpatches-2.6.12-7