• Andrew Morton's avatar
    [PATCH] ext3: fix deadlock in journal_create() · d62b7983
    Andrew Morton authored
    From: Mark Fasheh <mark.fasheh@oracle.com>
    
    journal_create() is called under down_write(s_umount) on the mount path.  But
    it calls fsync_bdev(), which wants down_write(s_umount).
    
    Change journal_create() to run sync_blockdev() instead.  Just to write out
    the new journal's blocks.
    d62b7983
journal.c 51.8 KB