Skip to content

ide: Fix deadlock between TRIM and drain

Kevin Wolf qemu-devel 1 version Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7blkdebug: Add 'delay-ns' optionblock/blkdebug.c qapi/block-core.json+18 -10 replies
2/7block: Add blk_co_start/end_request() and BDRV_REQ_NO_QUEUEblock/block-backend.c include/block/block-common.h include/system/block-backend-io.h+41 -100 replies
3/7block: Add flags parameter to blk_*_pdiscard()block/block-backend.c block/export/virtio-blk-handler.c block/mirror.c +4 more+15 -140 replies
4/7ide: Minimal fix for deadlock between TRIM and drainhw/ide/core.c+18 -190 replies
5/7ide: Clean up ide_trim_co_entry() to be idiomatic coroutine codehw/ide/core.c+39 -480 replies
6/7ide-test: Factor out wait_dma_completion()tests/qtest/ide-test.c+29 -190 replies
7/7ide-test: Test reset during TRIMtests/qtest/ide-test.c+87 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] ide: Fix deadlock between TRIM and drain

Patches 2 and 4 are the core of the fix, see their commit message for details.

Kevin Wolf (7):
blkdebug: Add 'delay-ns' option
block: Add blk_co_start/end_request() and BDRV_REQ_NO_QUEUE
block: Add flags parameter to blk_*_pdiscard()
ide: Minimal fix for deadlock between TRIM and drain
ide: Clean up ide_trim_co_entry() to be idiomatic coroutine code
ide-test: Factor out wait_dma_completion()
ide-test: Test reset during TRIM

 qapi/block-core.json              |   4 +
 include/block/block-common.h      |  11 ++-
 include/system/block-backend-io.h |   6 +-
 block/blkdebug.c                  |  15 +++-
 block/block-backend.c             |  47 +++++++---
 block/export/virtio-blk-handler.c |   2 +-
 block/mirror.c                    |   4 +-
 hw/ide/core.c                     | 110 +++++++++++-------------
 nbd/server.c                      |   2 +-
 qemu-io-cmds.c                    |   2 +-
 tests/qtest/ide-test.c            | 137 ++++++++++++++++++++++++------
 tests/unit/test-block-iothread.c  |   4 +-
 12 files changed, 236 insertions(+), 108 deletions(-)
Signature · 1 line
2.53.0