]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-blk: don't lock AioContext in the submission code path
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 14 Sep 2023 14:01:01 +0000 (10:01 -0400)
committerKevin Wolf <kwolf@redhat.com>
Thu, 21 Dec 2023 21:49:27 +0000 (22:49 +0100)
commit6b5aa3a0fdfc74d42f9f7705fa6ced73253b06b1
treec52ba19cb38e53c742722297aff69004c9d18835
parentc1135913c655ecfac2f3074671663f4251c8177f
virtio-blk: don't lock AioContext in the submission code path

There is no need to acquire the AioContext lock around blk_aio_*() or
blk_get_geometry() anymore. I/O plugging (defer_call()) also does not
require the AioContext lock anymore.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230914140101.1065008-5-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c