On Wed, Sep 18, 2013 at 10:27:02PM +0000, bugzilla-daemon@xxxxxxxxxxxxxxxxxxx wrote: > FYI, this bug only appears after some period of usage. After a reboot, I can > umount without error. After a reboot and an rsync of the gentoo portage tree > to the filesystem, I can still umount without error. It seems the filesystem > only fails to unmount after the filesystem has been in use for a while. > However, it is quite consistent in failing to umount after several days of > usage. Hmm, can you say a bit more about what sort of files you store on the file system and how the file system gets used? What looks like is going on is that there is a whole series of inodes that have been left stalled on the orpaned inode list. By the time we reach that point in the unmount, the in-memory orphan list should have been cleared. So here are a couple of things that would be really useful to try. First of all, if you could try to reproduce the crash, and then before you do the umount, run "dumpe2fs -h /dev/md1 > ~/dumpe2fs.md1.save; sync". Then if the system crashes with the same BUG_ON, send us the dumpe2fs.md1.save, along with the console output. The thing which I am trying to determine is whether the on-disk orphaned inode list is set at the time of the umount. If it is set, it would be interesting if you could run sync, wait for things to settle, check to see if dumpe2fs shows that the orphaned list is empty, and then see if you can trigger the crash. The other thing that would be useful is to grab one of the inodes listed in the console, i.e.: [642473.269223] inode md1:20289506 at ffff88000499aed0: mode 100644, nlink 0, next 20367069 ... and then run the command: "debugfs -R 'stat <20289506>' /dev/md1" What I am interested in is the inode's atime/ctime/dtime. It would be interesting to see if the file was deleted right before the umount was attempted. Thanks for the bug report! Hopefully we'll be able to figure out why you are seeing this. Cheers, - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html