-
Fabiano Rosas authored
This doubly linked list is common for all the multifd and migration threads so we need to avoid concurrent access. Add a mutex to protect the data from concurrent access. This fixes a crash when removing two MigrationThread objects from the list at the same time during cleanup of multifd threads. Fixes: 67132620 ("migration: Introduce interface query-migrationthreads") Signed-off-by:
Fabiano Rosas <farosas@suse.de>
Reviewed-by:
Peter Xu <peterx@redhat.com>
Reviewed-by:
Juan Quintela <quintela@redhat.com>
Message-Id: <20230607161306.31425-3-farosas@suse.de>
Signed-off-by:
Juan Quintela <quintela@redhat.com>Fabiano Rosas authoredThis doubly linked list is common for all the multifd and migration threads so we need to avoid concurrent access. Add a mutex to protect the data from concurrent access. This fixes a crash when removing two MigrationThread objects from the list at the same time during cleanup of multifd threads. Fixes: 67132620 ("migration: Introduce interface query-migrationthreads") Signed-off-by:
Fabiano Rosas <farosas@suse.de>
Reviewed-by:
Peter Xu <peterx@redhat.com>
Reviewed-by:
Juan Quintela <quintela@redhat.com>
Message-Id: <20230607161306.31425-3-farosas@suse.de>
Signed-off-by:
Juan Quintela <quintela@redhat.com>
Loading