]> git.ipfire.org Git - thirdparty/qemu.git/commit
dma: use current AioContext for dma_blk_io()
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 11 Mar 2025 13:26:05 +0000 (21:26 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Mar 2025 16:57:23 +0000 (17:57 +0100)
commita89c3c9b2cc4107658c7260ecf329d869888fd51
tree5b1d47b94e5e27fe8b731e06de5465a5c4c0ea16
parentb2e3659d0d769c84f5b15239a93a722c8012bffa
dma: use current AioContext for dma_blk_io()

In the past a single AioContext was used for block I/O and it was
fetched using blk_get_aio_context(). Nowadays the block layer supports
running I/O from any AioContext and multiple AioContexts at the same
time. Remove the dma_blk_io() AioContext argument and use the current
AioContext instead.

This makes calling the function easier and enables multiple IOThreads to
use dma_blk_io() concurrently for the same block device.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250311132616.1049687-3-stefanha@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c
hw/ide/macio.c
hw/scsi/scsi-disk.c
include/system/dma.h
system/dma-helpers.c