migration: Remove transferred atomic counter
After last commit, it is a write only variable. Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231025091117.6342-12-quintela@redhat.com>
This commit is contained in:
parent
897fd8bdce
commit
0f8596180a
@ -97,10 +97,6 @@ typedef struct {
|
|||||||
* Number of bytes sent through RDMA.
|
* Number of bytes sent through RDMA.
|
||||||
*/
|
*/
|
||||||
Stat64 rdma_bytes;
|
Stat64 rdma_bytes;
|
||||||
/*
|
|
||||||
* Total number of bytes transferred.
|
|
||||||
*/
|
|
||||||
Stat64 transferred;
|
|
||||||
/*
|
/*
|
||||||
* Number of pages transferred that were full of zeros.
|
* Number of pages transferred that were full of zeros.
|
||||||
*/
|
*/
|
||||||
|
@ -188,7 +188,6 @@ static int multifd_send_initial_packet(MultiFDSendParams *p, Error **errp)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
stat64_add(&mig_stats.multifd_bytes, size);
|
stat64_add(&mig_stats.multifd_bytes, size);
|
||||||
stat64_add(&mig_stats.transferred, size);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -733,8 +732,6 @@ static void *multifd_send_thread(void *opaque)
|
|||||||
|
|
||||||
stat64_add(&mig_stats.multifd_bytes,
|
stat64_add(&mig_stats.multifd_bytes,
|
||||||
p->next_packet_size + p->packet_len);
|
p->next_packet_size + p->packet_len);
|
||||||
stat64_add(&mig_stats.transferred,
|
|
||||||
p->next_packet_size + p->packet_len);
|
|
||||||
p->next_packet_size = 0;
|
p->next_packet_size = 0;
|
||||||
qemu_mutex_lock(&p->mutex);
|
qemu_mutex_lock(&p->mutex);
|
||||||
p->pending_job--;
|
p->pending_job--;
|
||||||
|
@ -448,7 +448,6 @@ void ram_transferred_add(uint64_t bytes)
|
|||||||
} else {
|
} else {
|
||||||
stat64_add(&mig_stats.downtime_bytes, bytes);
|
stat64_add(&mig_stats.downtime_bytes, bytes);
|
||||||
}
|
}
|
||||||
stat64_add(&mig_stats.transferred, bytes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MigrationOps {
|
struct MigrationOps {
|
||||||
|
Loading…
Reference in New Issue
Block a user