diff options
author | 2011-04-11 15:45:29 -0400 | |
---|---|---|
committer | 2011-04-11 20:43:52 -0400 | |
commit | 13c5a93e7005d7dae0b6d070d25203593e692d13 (patch) | |
tree | ecbc7205618940bbba3f0d9ad000462a5364f763 /kernel/sysctl.c | |
parent | Btrfs: check for duplicate iov_base's when doing dio reads (diff) | |
download | wireguard-linux-13c5a93e7005d7dae0b6d070d25203593e692d13.tar.xz wireguard-linux-13c5a93e7005d7dae0b6d070d25203593e692d13.zip |
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: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions