]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix freeze deadlock under IO
authorEric Sandeen <sandeen@sandeen.net>
Sun, 1 Aug 2010 21:33:29 +0000 (17:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 Aug 2010 21:33:29 +0000 (17:33 -0400)
commit07b1f4744046d09d740169ca33e62873d7a187eb
tree0b3ab55db25c0ac8695b27858013388ff4bcc8a9
parent22d3ec193200a1aa2c95503f9919b232b7d13827
ext4: fix freeze deadlock under IO

Commit 4c922dc8282de70 caused a regression resulting in deadlocks
when freezing a filesystem which had active IO; the vfs_check_frozen
level (SB_FREEZE_WRITE) did not let the freeze-related IO syncing
through.  Duh.

Changing the test to FREEZE_TRANS should let the normal freeze
syncing get through the fs, but still block any transactions from
starting once the fs is completely frozen.

I tested this by running fsstress in the background while periodically
snapshotting the fs and running fsck on the result.  I ran into
occasional deadlocks, but different ones.  I think this is a
fine fix for the problem at hand, and the other deadlocky things
will need more investigation.

Reported-by: Phillip Susi <psusi@cfl.rr.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c