Btrfs: Fix race in running_transaction checks
authorChris Mason <chris.mason@oracle.com>
Mon, 9 Jun 2008 13:35:50 +0000 (09:35 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000 (11:04 -0400)
commit48ec2cf8738b0db53dc8361026cb7a328f7ad386
treeadcb56cf494b67c578a5032b3454203c21171419
parente1b81e6761bd8419146d4bbe0aadd8b2d348a01c
Btrfs: Fix race in running_transaction checks

When a new transaction was started, the code would incorrectly
set the pointer in fs_info before all the data structures were setup.
fsync heavy workloads hit races on the setup of the ordered inode spinlock

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