migration/block: Avoid invoking blk_drain too frequently
commit1cf6aa74b32f18f9b5faf525a93b0c1f609acb1f
authorLidong Chen <jemmy858585@gmail.com>
Wed, 15 Mar 2017 03:37:33 +0000 (15 11:37 +0800)
committerJuan Quintela <quintela@redhat.com>
Thu, 16 Mar 2017 07:58:27 +0000 (16 08:58 +0100)
tree2dec61809940e38c6dee28f8aaf41122f80cbc18
parent4af245dc3e6e5c96405b3edb9d75657504256469
migration/block: Avoid invoking blk_drain too frequently

Increase bmds->cur_dirty after submit io, so reduce the frequency
involve into blk_drain, and improve the performance obviously
when block migration.

The performance test result of this patch:

During the block dirty save phase, this patch improve guest os IOPS
from 4.0K to 9.5K. and improve the migration speed from
505856 rsec/s to 855756 rsec/s.

Signed-off-by: Lidong Chen <jemmy858585@gmail.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/block.c