]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-blk: tolerate failure to set BlockBackend AioContext
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Jan 2024 13:57:47 +0000 (08:57 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 26 Jan 2024 10:16:58 +0000 (11:16 +0100)
commitea0736d7f84ead109a6b701427991828f97724c3
treeb21dc4c0a21dd64307c83b194271ef3d50bbf473
parent71ee0cdd14cc01a8b51aa4e9577dd0a1bb2f8e19
virtio-blk: tolerate failure to set BlockBackend AioContext

We no longer rely on setting the AioContext since the block layer
IO_CODE APIs can be called from any thread. Now it's just a hint to help
block jobs and other operations co-locate themselves in a thread with
the guest I/O requests. Keep going if setting the AioContext fails.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20240119135748.270944-6-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c