]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: unlock the trans lock properly
authorJosef Bacik <josef@redhat.com>
Thu, 9 Jun 2011 14:15:17 +0000 (10:15 -0400)
committerJosef Bacik <josef@redhat.com>
Thu, 9 Jun 2011 14:15:17 +0000 (10:15 -0400)
commit4194946ab478f0c08964c094d759e3010b73fac2
tree1f87d27e58a27ab525ac7579e6e1233052f8b573
parent43c8e880ffeb11412f8a3916d19ebb5c7e25eecf
Btrfs: unlock the trans lock properly

In btrfs_wait_for_commit if we came upon a transaction that had committed we
just exited, but that's bad since we are holding the trans_lock.  So break
instead so that the lock is dropped.  Thanks,

Reported-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/transaction.c