]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix lockdep warning
authorJosef Bacik <jbacik@fusionio.com>
Wed, 17 Apr 2013 16:16:59 +0000 (12:16 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:00 +0000 (15:55 -0400)
commitce07ecfd643979ed5dfd3e51f1cc9fb2d2fd9a8c
tree90992e6775549b70fa3aa106a40c25d964dc78c2
parentaff86028a0c66a39b766c450824fa38742ffe824
Btrfs: fix lockdep warning

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: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/super.c