[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] virtio-blk: add lock to protect s->rq
From: |
Eric Blake |
Subject: |
Re: [PATCH 2/4] virtio-blk: add lock to protect s->rq |
Date: |
Thu, 14 Sep 2023 11:13:19 -0500 |
User-agent: |
NeoMutt/20230517 |
On Thu, Sep 14, 2023 at 10:00:59AM -0400, Stefan Hajnoczi wrote:
> s->rq is accessed from IO_CODE and GLOBAL_STATE_CODE. Introduce a lock
> to protect s->rq and eliminate reliance on the AioContext lock.
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> include/hw/virtio/virtio-blk.h | 3 +-
> hw/block/virtio-blk.c | 67 +++++++++++++++++++++++-----------
> 2 files changed, 47 insertions(+), 23 deletions(-)
>
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
- [PATCH 0/4] virtio-blk: prepare for the multi-queue block layer, Stefan Hajnoczi, 2023/09/14
- [PATCH 3/4] virtio-blk: don't lock AioContext in the completion code path, Stefan Hajnoczi, 2023/09/14
- [PATCH 2/4] virtio-blk: add lock to protect s->rq, Stefan Hajnoczi, 2023/09/14
- Re: [PATCH 2/4] virtio-blk: add lock to protect s->rq,
Eric Blake <=
- [PATCH 4/4] virtio-blk: don't lock AioContext in the submission code path, Stefan Hajnoczi, 2023/09/14
- [PATCH 1/4] block/file-posix: set up Linux AIO and io_uring in the current thread, Stefan Hajnoczi, 2023/09/14
- Re: [PATCH 0/4] virtio-blk: prepare for the multi-queue block layer, Michael S. Tsirkin, 2023/09/15