migration/multifd: Avoid the final FLUSH in complete()
authorPeter Xu <peterx@redhat.com>
Wed, 19 Jun 2024 22:30:36 +0000 (18:30 -0400)
committerFabiano Rosas <farosas@suse.de>
Fri, 21 Jun 2024 12:47:59 +0000 (09:47 -0300)
commit637280aeb242517ede480aa2d5ba1c29d41eac11
tree3374a6b203af5d3eb9cb9fc1451210184cb754d8
parent31a5a3032eb3d62e045e18c80658e5e8f5341cda
migration/multifd: Avoid the final FLUSH in complete()

We always do the flush when finishing one round of scan, and during
complete() phase we should scan one more round making sure no dirty page
existed.  In that case we shouldn't need one explicit FLUSH at the end of
complete(), as when reaching there all pages should have been flushed.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Tested-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/ram.c