Eric Sandeen 437f88cc03 ext4: fix freeze deadlock under IO
Commit 6b0310fbf087ad6 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>
2010-08-01 17:33:29 -04:00
..
2010-06-11 23:14:04 -04:00
2010-07-27 11:56:07 -04:00
2010-06-11 23:14:04 -04:00
2010-05-17 07:00:00 -04:00
2010-08-01 17:33:29 -04:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00
2010-05-21 18:31:19 -04:00
2010-06-11 23:14:04 -04:00
2010-05-21 18:31:19 -04:00