]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't wait on ordered extents if we have a trans open
authorJosef Bacik <jbacik@fusionio.com>
Thu, 4 Apr 2013 15:55:49 +0000 (11:55 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:32 +0000 (15:54 -0400)
commit7cf738a88246750e5d706b0c06d4a7817d62c9f3
tree4a659ebbbd366b0dd04923197509b7ccc578b8da
parent3894572324a95e6124d6f9480debf0d76d90c278
Btrfs: don't wait on ordered extents if we have a trans open

Dave was hitting a lockdep warning because we're now properly taking the ordered
operations mutex in the ordered wait stuff.  This is because some cases we will
have a trans handle when we are flushing delalloc space, but we can't wait on
ordered extents because we could potentially deadlock, so fix this by not doing
the wait if we have a trans handle.  Thanks

Reported-and-tested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c