]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Btrfs: Throttle for async bio submits higher up the chain
authorChris Mason <chris.mason@oracle.com>
Thu, 28 Aug 2008 10:15:24 +0000 (06:15 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:07 +0000 (11:04 -0400)
commit9473f16c75606fe6b2e5000525fe9766114505f3
tree93080f8a9bcf59170ce9b56b7e8b03fb4bfed8d9
parentf3f9931e3d0836509cfccdf473b34e34543a3272
Btrfs: Throttle for async bio submits higher up the chain

The current code waits for the count of async bio submits to get below
a given threshold if it is too high right after adding the latest bio
to the work queue.  This isn't optimal because the caller may have
sequential adjacent bios pending they are waiting to send down the pipe.

This changeset requires the caller to wait on the async bio count,
and changes the async checksumming submits to wait for async bios any
time they self throttle.

The end result is much higher sequential throughput.

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