Summary: | full freeze on ntfs unmount with inotify-0.23 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | steev |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | inotify patch against 2.6.12-gentoo-r3 |
Description
Petteri Räty (RETIRED)
2005-06-27 09:15:16 UTC
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 |