qemu-iotests fixes for Kevin's block tree
Status from this message: Thanks, applied to the block branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest6 patches 1 replyApplied
- v26 patches 2 repliesSuperseded
- v16 patches 9 repliesSuperseded
Changes in v3 from the cover letter
- Add aio_wait_kick() into nbd_read_eof() to avoid race with nbd_drained_poll() [Kevin]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | fixup block-coroutine-wrapper: use qemu_get_current_aio_context()tests/ | +2 | 0 replies | |
| 2/6 | fixup block: remove AioContext lockingmigration/ | +7 | 0 replies | |
| 3/6 | fixup scsi: only access SCSIDevice->requests from one threadhw/ | +2 | 0 replies | |
| 4/6 | nbd/server: avoid per-NBDRequest nbd_client_get/put()nbd/ | +0 | 0 replies | |
| 5/6 | nbd/server: only traverse NBDExport->clients from main loop threadnbd/ | +51 | 0 replies | |
| 6/6 | nbd/server: introduce NBDClient->lock to protect fieldsnbd/ | +111 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Paolo Bonzini |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/6] qemu-iotests fixes for Kevin's block tree
v3:
- Add aio_wait_kick() into nbd_read_eof() to avoid race with nbd_drained_poll() [Kevin]
v2:
- Drop useless if (client->quiesing) check [Kevin]
- run qio_channel_read_wake() in export AioContext to avoid race [Kevin]
- Introduce nbd_client_put_nonzero() optimization [Paolo]
- Reach goto label disconnect with client->lock taken [Paolo]
- Add doc comment explaining nbd_co_receive_request() loop in nbd_trip() [Kevin]
Kevin merged several of my outstanding multi-queue block layer patch series and found that qemu-iotests -qcow2 was broken. This patch series fixes the block branch.
Most of the fixes are easy but the NBD server required deeper debugging and thread-safety fixes. The NBD server patches can be inserted before "aio: make aio_context_acquire()/aio_context_release() a no-op" to preserve bisectability. The other patches are fixups that can be squashed into the original patches.
Stefan Hajnoczi (6):
fixup block-coroutine-wrapper: use qemu_get_current_aio_context() fixup block: remove AioContext locking
fixup scsi: only access SCSIDevice->requests from one thread nbd/server: avoid per-NBDRequest nbd_client_get/put() nbd/server: only traverse NBDExport->clients from main loop thread nbd/server: introduce NBDClient->lock to protect fields
hw/scsi/scsi-bus.c | 3 +- migration/block.c | 7 ++ nbd/server.c | 208 ++++++++++++++++++++++++++-------- tests/qemu-iotests/051.pc.out | 4 +- 4 files changed, 173 insertions(+), 49 deletions(-)
Signature · 1 line
2.43.0