[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/26] migration/multifd: Protect accesses to migration_threa
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH 02/26] migration/multifd: Protect accesses to migration_threads |
Date: |
Mon, 24 Jul 2023 10:29:08 -0300 |
Juan Quintela <quintela@redhat.com> writes:
> From: Fabiano Rosas <farosas@suse.de>
>
> 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: 671326201d ("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>
Hi Juan,
What about re-enabling the /multifd/tcp/plain/cancel test? You had
mentioned that something else was needed, but never said exactly
what...
I've been doing a lot of migration work recently and all of my branches
have this change and the cancel test enabled. No issues so far.
- [PATCH 00/26] Migration PULL 2023-07-24, Juan Quintela, 2023/07/24
- [PATCH 01/26] migration/multifd: Rename threadinfo.c functions, Juan Quintela, 2023/07/24
- [PATCH 02/26] migration/multifd: Protect accesses to migration_threads, Juan Quintela, 2023/07/24
- Re: [PATCH 02/26] migration/multifd: Protect accesses to migration_threads,
Fabiano Rosas <=
- [PATCH 03/26] softmmu/dirtylimit: Add parameter check for hmp "set_vcpu_dirty_limit", Juan Quintela, 2023/07/24
- [PATCH 05/26] qapi/migration: Introduce vcpu-dirty-limit parameters, Juan Quintela, 2023/07/24
- [PATCH 06/26] migration: Introduce dirty-limit capability, Juan Quintela, 2023/07/24
- [PATCH 07/26] migration: Refactor auto-converge capability logic, Juan Quintela, 2023/07/24
- [PATCH 11/26] migration-test: Be consistent for ppc, Juan Quintela, 2023/07/24
- [PATCH 08/26] migration: Put the detection logic before auto-converge checking, Juan Quintela, 2023/07/24
- [PATCH 10/26] migration: Extend query-migrate to provide dirty page limit info, Juan Quintela, 2023/07/24
- [PATCH 09/26] migration: Implement dirty-limit convergence algo, Juan Quintela, 2023/07/24
- [PATCH 16/26] migration: skipped field is really obsolete., Juan Quintela, 2023/07/24
- [PATCH 12/26] migration-test: Make machine_opts regular with other options, Juan Quintela, 2023/07/24