Skip to content
Commit 13c5a93e authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: avoid taking the trans_mutex in btrfs_end_transaction



I've been working on making our O_DIRECT latency not suck and I noticed we were
taking the trans_mutex in btrfs_end_transaction.  So to do this we convert
num_writers and use_count to atomic_t's and just decrement them in
btrfs_end_transaction.  Instead of deleting the transaction from the trans list
in put_transaction we do that in btrfs_commit_transaction() since that's the
only time it actually needs to be removed from the list.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 93a54bc4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment