Btrfs: Wait for kernel threads to make progress during async submission
authorChris Mason <chris.mason@oracle.com>
Fri, 15 Aug 2008 19:34:17 +0000 (15:34 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:06 +0000 (11:04 -0400)
commit4854ddd0ed0a687fc2d7c45a529c406232e31e7b
tree6de9774969875cc30c21c96e145294727c56e73b
parent5443be45f5cb57d02fd895a0bcaf7e7d9890b1df
Btrfs: Wait for kernel threads to make progress during async submission

Before this change, btrfs would use a bdi congestion function to make
sure there weren't too many pending async checksum work items.

This change makes the process creating async work items wait instead,
leading to fewer congestion returns from the bdi.  This improves
pdflush background_writeout scanning.

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