]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not use async submit for small DIO io's
authorJosef Bacik <josef@redhat.com>
Wed, 6 Apr 2011 18:41:34 +0000 (14:41 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:39 +0000 (13:00 -0400)
commit20c397a82c3e324306c6686121a554ee500ccf14
tree0c07663bf1b6bca8cb774b187f5bb85d36e372d5
parentcc07b40a2c34842a74d3730537b76029f1395919
Btrfs: do not use async submit for small DIO io's

When looking at our DIO performance Chris said that for small IO's doing the
async submit stuff tends to be more overhead than it's worth.  With this on top
of my other fixes I get about a 17-20% speedup doing a sequential dd with 4k
IO's.  Basically if we don't have to split the bio for the map length it's small
enough to be directly submitted, otherwise go back to the async submit.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c