block: protect BlockBackend->queued_requests with a lock
Status from this message: Thanks, applied to the block-next branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 8 repliesApplied
- v13 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- Use qatomic_fetch_inc/dec() for readability in Patch 1 [Hanna]
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block: make BlockBackend->quiesce_counter atomicblock/ | +7 | 1 reply | |
| 2/3 | block: make BlockBackend->disable_request_queuing atomicblock/ | +4 | 6 replies | |
| 3/3 | block: protect BlockBackend->queued_requests with a lockblock/ | +16 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Hanna Czenczek | Philippe Mathieu-Daudé |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] block: protect BlockBackend->queued_requests with a lock
v2:
- Use qatomic_fetch_inc/dec() for readability in Patch 1 [Hanna]
QEMU block layer multi-queue support involves running I/O requests from multiple threads. Shared state must be protected somehow to avoid thread-safety issues.
The BlockBackend->queued_requests CoQueue is accessed without a lock and will likely be corrupted when multiple threads queue requests at the same time.
This patch series make BlockBackend->queued_requests thread-safe.
Stefan Hajnoczi (3):
block: make BlockBackend->quiesce_counter atomic
block: make BlockBackend->disable_request_queuing atomic
block: protect BlockBackend->queued_requests with a lock
block/block-backend.c | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-)
Signature · 1 line
2.39.2