diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-02-04 15:33:00 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-02-04 15:33:00 +0100 |
commit | 9b0d3ace33ef225690a86d7130feadb22367f496 (patch) | |
tree | eae45955a38b4d4c2515549112ec749590b56aa9 /fs | |
parent | Btrfs: Only prep for btree deletion balances when nodes are mostly empty (diff) | |
download | linux-9b0d3ace33ef225690a86d7130feadb22367f496.tar.xz linux-9b0d3ace33ef225690a86d7130feadb22367f496.zip |
Btrfs: don't return congestion in write_cache_pages as often
On fast devices that go from congested to uncongested very quickly, pdflush
is waiting too often in congestion_wait, and the FS is backing off to
easily in write_cache_pages.
For now, fix this on the btrfs side by only checking congestion after
some bios have already gone down. Longer term a real fix is needed
for pdflush, but that is a larger project.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index dd5df53e045a..37d43b516b79 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2377,11 +2377,6 @@ static int extent_write_cache_pages(struct extent_io_tree *tree, int scanned = 0; int range_whole = 0; - if (wbc->nonblocking && bdi_write_congested(bdi)) { - wbc->encountered_congestion = 1; - return 0; - } - pagevec_init(&pvec, 0); if (wbc->range_cyclic) { index = mapping->writeback_index; /* Start from prev offset */ |