From: Josef Bacik Date: Mon, 11 Apr 2011 19:45:29 +0000 (-0400) Subject: Btrfs: avoid taking the trans_mutex in btrfs_end_transaction X-Git-Tag: v2.6.39-rc4~5^2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13c5a93e7005d7dae0b6d070d25203593e692d13;p=pandora-kernel.git 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 --- Reading git-diff-tree failed