--------------------- PatchSet 828 Date: 2002/04/15 21:34:54 Author: sct Log: Fix LVM snapshot deadlock: it is a bad idea to try to flush all running transactions while we already hold the superblock lock. Drop the sb lock while we flush. Members: fs/ext3/super.c:1.34.2.20->1.34.2.21 [ext3-1_0-branch] --- linux-ext3-2.4merge/fs/ext3/super.c.=K0002=.orig Sat Aug 17 20:10:27 2002 +++ linux-ext3-2.4merge/fs/ext3/super.c Sat Aug 17 20:23:19 2002 @@ -1588,8 +1588,10 @@ journal_t *journal = EXT3_SB(sb)->s_journal; /* Now we set up the journal barrier. */ + unlock_super(sb); journal_lock_updates(journal); journal_flush(journal); + lock_super(sb); /* Journal blocked and flushed, clear needs_recovery flag. */ EXT3_CLEAR_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_RECOVER);