[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/8] virtio-blk: remove unnecessary AioContext lock from func
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 8/8] virtio-blk: remove unnecessary AioContext lock from function already safe |
Date: |
Tue, 5 Jul 2022 15:48:30 +0100 |
On Thu, Jun 09, 2022 at 10:37:27AM -0400, Emanuele Giuseppe Esposito wrote:
> AioContext lock was introduced in b9e413dd375 and in this instance
> it is used to protect these 3 functions:
> - virtio_blk_handle_rw_error
> - virtio_blk_req_complete
> - block_acct_done
>
> Now that all three of the above functions are protected with
> their own locks, we can get rid of the AioContext lock.
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> hw/block/virtio-blk.c | 18 ++----------------
> 1 file changed, 2 insertions(+), 16 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 8/8] virtio-blk: remove unnecessary AioContext lock from function already safe,
Stefan Hajnoczi <=