Skip to content

Commit 7d5d9c8

Browse files
avihai1122legoater
authored andcommitted
system/dirtylimit: Don't use migration_is_active()
vcpu_dirty_rate_stat_collect() uses migration_is_active() to detect whether migration is running or not, in order to get the correct dirty rate period value. However, recently there has been an effort to simplify the migration status API and reduce it to a single migration_is_running() function. To accommodate this, and since the same functionality can be achieved with migration_is_running(), use it instead of migration_is_active(). Signed-off-by: Avihai Horon <[email protected]> Reviewed-by: Hyman Huang <[email protected]> Tested-by: Joao Martins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Cédric Le Goater <[email protected]>
1 parent 1f21670 commit 7d5d9c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system/dirtylimit.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ static void vcpu_dirty_rate_stat_collect(void)
8080
int i = 0;
8181
int64_t period = DIRTYLIMIT_CALC_TIME_MS;
8282

83-
if (migrate_dirty_limit() &&
84-
migration_is_active()) {
83+
if (migrate_dirty_limit() && migration_is_running()) {
8584
period = migrate_vcpu_dirty_limit_period();
8685
}
8786

0 commit comments

Comments
 (0)