diff options
author | Josef Bacik <josef@redhat.com> | 2011-04-11 15:45:29 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-04-11 20:43:52 -0400 |
commit | 13c5a93e7005d7dae0b6d070d25203593e692d13 (patch) | |
tree | ecbc7205618940bbba3f0d9ad000462a5364f763 /drivers/md/dm-path-selector.h | |
parent | 93a54bc4c28a125978cddbe2db9e347391e3522d (diff) | |
download | talos-obmc-linux-13c5a93e7005d7dae0b6d070d25203593e692d13.tar.gz talos-obmc-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 'drivers/md/dm-path-selector.h')
0 files changed, 0 insertions, 0 deletions