• J
    Btrfs: fix lockdep warning · 62dbd717
    Josef Bacik 提交于
    The locking order for stuff is
    
    __sb_start_write
    ordered_mutex
    
    but with sync() we don't do __sb_start_write for some strange reason, which
    means that our iput in wait_ordered_extents could start a transaction which does
    the __sb_start_write while we're holding the ordered_mutex.  Fix this by using
    delayed iput in sync.  Thanks,
    Reported-by: NDavid Sterba <dsterba@suse.cz>
    Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
    62dbd717
super.c 46.6 KB