Files
qemu-qemu-1/util
Paolo Bonzini bbdedf42f2 async: access bottom half flags with qatomic_read
Running test-aio-multithread under TSAN reveals data races on bh->flags.
Because bottom halves may be scheduled or canceled asynchronously,
without taking a lock, adjust aio_compute_bh_timeout() and aio_ctx_check()
to use a relaxed read to access the flags.

Use an acquire load to ensure that anything that was written prior to
qemu_bh_schedule() is visible.

Closes: https://gitlab.com/qemu-project/qemu/-/issues/2749
Closes: https://gitlab.com/qemu-project/qemu/-/issues/851
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 5142397c79)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2025-10-15 23:27:03 +03:00
..
2023-03-20 12:43:50 +01:00
2023-12-19 19:03:38 +01:00
2025-01-16 20:57:17 -08:00
2023-05-23 15:20:15 +08:00
2024-09-20 10:00:27 +03:00
2024-09-13 20:11:13 +02:00
2025-03-04 14:45:34 +01:00
2025-03-10 17:07:16 +08:00
2024-12-20 17:44:56 +01:00
2025-01-29 11:43:04 -03:00
2023-04-24 11:29:00 +02:00
2024-06-21 09:47:22 -03:00
2023-08-31 19:47:43 +02:00
2023-03-28 15:23:10 -07:00
2023-11-15 12:06:05 +03:00
2024-06-19 12:42:03 +02:00
2023-04-27 16:39:43 +02:00
2023-11-03 09:20:31 +01:00