Re: Hang during rm on ext2 mounted sync (2.6.14-rc2+)

Chris Sykes
2005-09-23T12:19:43Z

[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]

On Fri, Sep 23, 2005 at 01:57:19AM -0700, Andrew Morton wrote:
> Odd. Seems OK here. How hard is it to make it occur?

The following always works first time on an affected kernel (I'm just
mimmicing that update-grub did at the point it hung on me):

cd /to_ext2_fs_mounted_with_sync
cp /boot/grub/menu.lst menu.lst.new
cat menu.lst.new >menu.lst
rm menu.lst.new

> I'd be suspecting a lost I/O completion from the device driver. Are you
> really sure that ext3 cannot be made to do the same thing?

I just ran the above 1000 times on 2.6.13-git10 (also affected), on
ext3, no hung rm process.
Running on ext2, rm hangs first time.

> Suggest you generate the `dmesg -s 1000000' output for both good and bad
> kernels, do a `diff -u' on them and look for IDE complaints (or SCSI, if
> you're on SCSI).

OK will do.

Initial testing suggests that 2.6.13-git9 is good while 2.6.13-git10
that I'm running now fails. I'll verify this and have a look at dmesg
output as well.