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

Chris Sykes
2005-09-22T20:49:55Z

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

On Thu, Sep 22, 2005 at 05:37:08PM +0100, Chris Sykes wrote:
> Ext gurus
>
> Kernels: 2.6.14-rc1 -> 2.6.14-rc2 + up to hg changeset 5c9ff0e17a61
>
> I'm experiencing processes getting stuck in the 'D' state whilst
> rm'ing files on an ext2 fs mounted with the 'sync' option. What I've
> tested so far:
>
> * Ext2 mounted with sync: rm hangs
> * Ext2 mounted without sync: OK
> * Ext3 mounted with sync: OK
> * Ext3 mounted without sync: OK

More datapoints:

2.6.13.2 is OK.
Latest 2.6.14 from the mercurial repository as of this afternoon is
still affected. I'll try to narrow it down some more with a binary
search.

It seems that not just any rm will cause the stuck process. The
following procedure seems to get it every time though (I encountered
this bug first whilst running update-grub):

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