Btrfs: fix race during transaction joins
authorChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 08:26:19 +0000 (03:26 -0500)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 08:26:19 +0000 (03:26 -0500)
commitd43317dcd074818d4bd12ddd4184a29aff98907b
tree233033cf8c7f3cb38dc549d2a1be7f0fc9ecfd80
parent56d2a48f81a1bde827c625b90221fade72fe9c61
Btrfs: fix race during transaction joins

While we're allocating ram for a new transaction, we drop our spinlock.
When we get the lock back, we do check to see if a transaction started
while we slept, but we don't check to make sure it isn't blocked
because a commit has already started.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/transaction.c