]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: don't call btrfs_throttle in file write
authorJosef Bacik <josef@redhat.com>
Fri, 13 Jan 2012 00:10:12 +0000 (19:10 -0500)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 27 Jan 2012 01:21:12 +0000 (17:21 -0800)
commit0061ccdeec7047be701dbfc811858b73e49dfd61
treedfb82d35368065ee50ea133c7a9e5c475c4e6d6a
parent25a65a877cc4902dfe7fd39599f96f898bbb5b1f
Btrfs: don't call btrfs_throttle in file write

Btrfs_throttle will make us wait if there is a currently committing transaction
until we can open new transactions, which is ridiculous since we don't actually
start any transactions within the file write path anyway, so all this does is
introduce big latencies if we have a sync/fsync heavy workload going on while
somebody else is trying to do work.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
(cherry picked from commit 45a8090e626ab470c91142954431a93846030b0d)
fs/btrfs/file.c