Btrfs: Wait for async bio submissions to make some progress at queue time
authorChris Mason <chris.mason@oracle.com>
Wed, 20 Aug 2008 17:39:41 +0000 (13:39 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:06 +0000 (11:04 -0400)
commitb64a2851ba25b3410a87d3d1b751155612105c8e
tree5bad12d67cfdd6657acbe1091dd1c196e5e17818
parent4d1b5fb4d7075f862848dbff8873e22382abd482
Btrfs: Wait for async bio submissions to make some progress at queue time

Before, the btrfs bdi congestion function was used to test for too many
async bios.  This keeps that check to throttle pdflush, but also
adds a check while queuing bios.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/transaction.c
fs/btrfs/volumes.c