]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: tweak congestion backoff
authorChris Mason <chris.mason@oracle.com>
Fri, 7 Aug 2009 13:59:15 +0000 (09:59 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Sep 2009 17:31:05 +0000 (13:31 -0400)
commit87025e296181e1b1a58f979219af48b1464bd4a6
tree8744002a9232d25a9ded597fa89c3f1b00ec410c
parentf710d7dcecb4535810e36d7bbb727fd3193c023b
Btrfs: tweak congestion backoff

The btrfs io submission thread tries to back off congested devices in
favor of rotating off to another disk.

But, it tries to make sure it submits at least some IO before rotating
on (the others may be congested too), and so it has a magic number of
requests it tries to write before it hops.

This makes the magic number smaller.  Testing shows that we're spending
too much time on congested devices and leaving the other devices idle.

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