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

Nothing in the completion code path relies on the AioContext lock
anymore. Virtqueues are only accessed from one thread at any moment and
the s->rq global state is protected by its own lock now.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230914140101.1065008-4-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